From: Michael Stapelberg Date: Sun, 3 Jan 2010 21:02:07 +0000 (+0100) Subject: grab the pointer inside the signal handler popup X-Git-Tag: 3.e~6^2~168 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2b1a132c39d0ed16ce52fc683289377ee86ef8c4;p=i3%2Fi3 grab the pointer inside the signal handler popup --- diff --git a/src/sighandler.c b/src/sighandler.c index dc551ffc..61a3e129 100644 --- a/src/sighandler.c +++ b/src/sighandler.c @@ -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); }