From ad9c40cf31abaac3ec7d39f86897e378961b98fc Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 24 May 2019 14:28:59 -0400 Subject: locate-pointer: Do not grab pointer button when trying to locate --- plugins/mouse/msd-locate-pointer.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'plugins') diff --git a/plugins/mouse/msd-locate-pointer.c b/plugins/mouse/msd-locate-pointer.c index 505eb90..5c7d3a2 100644 --- a/plugins/mouse/msd-locate-pointer.c +++ b/plugins/mouse/msd-locate-pointer.c @@ -465,11 +465,7 @@ event_filter (GdkXEvent *gdkxevent, if (keyval == GDK_KEY_Control_L || keyval == GDK_KEY_Control_R) { if (xevent->xany.type == KeyRelease) - { - XUngrabButton (xevent->xany.display, - AnyButton, - AnyModifier, - xevent->xany.window); + { XAllowEvents (xevent->xany.display, AsyncKeyboard, xevent->xkey.time); @@ -480,16 +476,6 @@ event_filter (GdkXEvent *gdkxevent, XAllowEvents (xevent->xany.display, SyncKeyboard, xevent->xkey.time); - XGrabButton (xevent->xany.display, - AnyButton, - AnyModifier, - xevent->xany.window, - False, - ButtonPressMask, - GrabModeSync, - GrabModeAsync, - None, - None); } } else -- cgit v1.2.1