From 2b1a132c39d0ed16ce52fc683289377ee86ef8c4 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 3 Jan 2010 22:02:07 +0100 Subject: [PATCH] grab the pointer inside the signal handler popup --- src/sighandler.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.39.5