From cb1de2633daca2a447042e392b11fac5e668ecec Mon Sep 17 00:00:00 2001 From: Kanru Chen Date: Sun, 3 Aug 2008 21:04:52 +0800 Subject: [PATCH] event: Ungrab root when mouse enters client window. Signed-off-by: Julien Danjou --- event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.c b/event.c index 3bb045114..c66105072 100644 --- a/event.c +++ b/event.c @@ -337,7 +337,7 @@ event_handle_enternotify(void *data __attribute__ ((unused)), if((c = client_getbytitlebarwin(ev->event)) || (c = client_getbywin(ev->event))) { - window_grabbuttons(c->win, c->phys_screen, c->buttons); + window_grabbuttons(c->win, ev->root, c->buttons); /* The idea behind saving pointer_x and pointer_y is Bob Marley powered. * this will allow us top drop some EnterNotify events and thus not giving * focus to windows appering under the cursor without a cursor move */