]> git.sur5r.net Git - i3/i3/commitdiff
grab the pointer inside the signal handler popup
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 3 Jan 2010 21:02:07 +0000 (22:02 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 3 Jan 2010 21:02:07 +0000 (22:02 +0100)
src/sighandler.c

index dc551ffc646bdb1d85e003ea90a22bb0238a22a8..61a3e1298f285853fec54843a363e8a96182ddd5 100644 (file)
@@ -188,6 +188,10 @@ void handle_signal(int sig, siginfo_t *info, void *data) {
                 /* Grab the keyboard to get all input */
                 xcb_grab_keyboard(conn, false, win, XCB_CURRENT_TIME, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC);
 
+                /* Grab the cursor inside the popup */
+                xcb_grab_pointer(conn, false, win, XCB_NONE, XCB_GRAB_MODE_ASYNC,
+                                 XCB_GRAB_MODE_ASYNC, win, XCB_NONE, XCB_CURRENT_TIME);
+
                 sig_draw_window(conn, win, width, height, font->height);
                 xcb_flush(conn);
         }