summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-24 14:28:59 -0400
committerraveit65 <[email protected]>2019-09-12 17:17:36 +0200
commitcf2b44be57dfce4dd0f602d8f7f9b71dfcca78eb (patch)
tree4c35decb2604fa05052f455198fd42a5eaf33cec
parent5bf0b887c68081e293759d0af821551be8aecb10 (diff)
downloadmate-settings-daemon-cf2b44be57dfce4dd0f602d8f7f9b71dfcca78eb.tar.bz2
mate-settings-daemon-cf2b44be57dfce4dd0f602d8f7f9b71dfcca78eb.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