grab the pointer inside the signal handler popup

This commit is contained in:
Michael Stapelberg 2010-01-03 22:02:07 +01:00
parent be33c8e599
commit 2b1a132c39
1 changed files with 4 additions and 0 deletions

View 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);
}