summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-24 14:28:59 -0400
committerraveit65 <[email protected]>2019-06-06 18:52:14 +0200
commitad9c40cf31abaac3ec7d39f86897e378961b98fc (patch)
tree80ed0669440cc31633e5192a0077569f54ddaf69
parent50b567c18ed20198698df62a5b7db2fc17cc7b49 (diff)
downloadmate-settings-daemon-ad9c40cf31abaac3ec7d39f86897e378961b98fc.tar.bz2
mate-settings-daemon-ad9c40cf31abaac3ec7d39f86897e378961b98fc.tar.xz
locate-pointer: Do not grab pointer button when trying to locate
-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