display: Don't bother checking for mouse/keyboard separately

Just use our new is_moving_or_resizing method.
This commit is contained in:
Jasper St. Pierre 2014-04-20 11:46:12 -04:00
parent 6c9aa15814
commit f9305be450

View File

@ -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 =