core: end-of-grab button releases must be consumed by the window

Returning FALSE here gets the button release event propagated to the
client on wayland, which is unexpected after xdg_surface.move/resize()
have been called.

https://bugzilla.gnome.org/show_bug.cgi?id=738888
This commit is contained in:
Carlos Garnacho 2014-10-20 18:26:25 +02:00
parent b63413e5b0
commit 8819d9ce66

View File

@ -6110,10 +6110,8 @@ meta_window_handle_mouse_grab_op_event (MetaWindow *window,
case CLUTTER_BUTTON_RELEASE:
if (event->button.button == 1 ||
event->button.button == (unsigned int) meta_prefs_get_mouse_button_resize ())
{
end_grab_op (window, event);
return FALSE;
}
return TRUE;
case CLUTTER_TOUCH_BEGIN: