mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
window: don't process unrelated release events
When processing button events related to moving/resizing the window, only the first button should be considered. https://bugzilla.gnome.org/show_bug.cgi?id=704759
This commit is contained in:
parent
c3f28b9cdb
commit
1fa56bd7e0
@ -10075,13 +10075,16 @@ meta_window_handle_mouse_grab_op_event (MetaWindow *window,
|
|||||||
switch (xev->evtype)
|
switch (xev->evtype)
|
||||||
{
|
{
|
||||||
case XI_ButtonRelease:
|
case XI_ButtonRelease:
|
||||||
|
if (xev->detail == 1)
|
||||||
|
{
|
||||||
meta_display_check_threshold_reached (window->display,
|
meta_display_check_threshold_reached (window->display,
|
||||||
xev->root_x,
|
xev->root_x,
|
||||||
xev->root_y);
|
xev->root_y);
|
||||||
/* If the user was snap moving then ignore the button release
|
/* If the user was snap moving then ignore the button
|
||||||
* because they may have let go of shift before releasing the
|
* release because they may have let go of shift before
|
||||||
* mouse button and they almost certainly do not want a
|
* releasing the mouse button and they almost certainly do
|
||||||
* non-snapped movement to occur from the button release.
|
* not want a non-snapped movement to occur from the button
|
||||||
|
* release.
|
||||||
*/
|
*/
|
||||||
if (!window->display->grab_last_user_action_was_snap)
|
if (!window->display->grab_last_user_action_was_snap)
|
||||||
{
|
{
|
||||||
@ -10114,8 +10117,8 @@ meta_window_handle_mouse_grab_op_event (MetaWindow *window,
|
|||||||
update_tile_mode (window);
|
update_tile_mode (window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
meta_display_end_grab_op (window->display, xev->time);
|
meta_display_end_grab_op (window->display, xev->time);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case XI_Motion:
|
case XI_Motion:
|
||||||
|
Loading…
Reference in New Issue
Block a user