mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 20:12:06 +00:00
display: Don't bother checking for mouse/keyboard separately
Just use our new is_moving_or_resizing method.
This commit is contained in:
parent
6c9aa15814
commit
f9305be450
@ -1891,7 +1891,7 @@ meta_display_begin_grab_op (MetaDisplay *display,
|
||||
}
|
||||
|
||||
/* Grab keys for keyboard ops and mouse move/resizes; see #126497 */
|
||||
if (meta_grab_op_is_keyboard (op) || meta_grab_op_is_mouse (op))
|
||||
if (meta_grab_op_is_moving_or_resizing (op))
|
||||
{
|
||||
if (grab_window)
|
||||
display->grab_have_keyboard =
|
||||
|
Loading…
Reference in New Issue
Block a user