summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2013-07-23 17:48:16 +0100
committerLionel Landwerlin <llandwerlin@gmail.com>2013-10-13 01:58:56 +0100
commit0e3aab8691c240996c773e14bfbe9ce6fdf2303f (patch)
tree44d0312641f009eb578f34d30b7f9660c16ff558
parent55840c626c1b634be5fb054127c40a0fcaefad72 (diff)
display: don't interrupt grab move/resize without modifiers
The part of code dealing with move/resize grab in display.c is only responsible of this behavior when triggered with a modifier. So it shouldn't stop the move/resize behavior triggered from a mouse event without modifier on the title bar or sides of the window. https://bugzilla.gnome.org/show_bug.cgi?id=704759
-rw-r--r--src/core/display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 10da8d98..722fddd7 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2349,6 +2349,7 @@ event_callback (XEvent *event,
if ((window &&
meta_grab_op_is_mouse (display->grab_op) &&
+ (device_event->mods.effective & display->window_grab_modifiers) &&
display->grab_button != device_event->detail &&
display->grab_window == window) ||
grab_op_is_keyboard (display->grab_op))