workspace: Simplify some more grab op code

This commit is contained in:
Jasper St. Pierre 2014-08-15 13:46:09 -04:00
parent 471e6b9e13
commit 54d2218ac2

View File

@ -579,8 +579,7 @@ meta_workspace_activate_with_focus (MetaWorkspace *workspace,
return; return;
move_window = NULL; move_window = NULL;
if (workspace->screen->display->grab_op == META_GRAB_OP_MOVING || if (meta_grab_op_is_moving (workspace->screen->display->grab_op)
workspace->screen->display->grab_op == META_GRAB_OP_KEYBOARD_MOVING)
move_window = workspace->screen->display->grab_window; move_window = workspace->screen->display->grab_window;
if (move_window != NULL) if (move_window != NULL)