summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mouse/msd-locate-pointer.c16
1 files changed, 1 insertions, 15 deletions
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