display: Rename meta_grab_op_is_mouse to is_moving_or_resizing

is_mouse actually checks for all combinations of moving/resizing
grab ops, which is quite confusing. Just rename it.
This commit is contained in:
Jasper St. Pierre
2014-04-20 11:43:10 -04:00
parent beca90a689
commit d09116ebce
4 changed files with 12 additions and 36 deletions

View File

@@ -1169,37 +1169,6 @@ meta_grab_op_is_mouse_only (MetaGrabOp op)
}
}
gboolean
meta_grab_op_is_mouse (MetaGrabOp op)
{
switch (op)
{
case META_GRAB_OP_MOVING:
case META_GRAB_OP_RESIZING_SE:
case META_GRAB_OP_RESIZING_S:
case META_GRAB_OP_RESIZING_SW:
case META_GRAB_OP_RESIZING_N:
case META_GRAB_OP_RESIZING_NE:
case META_GRAB_OP_RESIZING_NW:
case META_GRAB_OP_RESIZING_W:
case META_GRAB_OP_RESIZING_E:
case META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN:
case META_GRAB_OP_KEYBOARD_RESIZING_S:
case META_GRAB_OP_KEYBOARD_RESIZING_N:
case META_GRAB_OP_KEYBOARD_RESIZING_W:
case META_GRAB_OP_KEYBOARD_RESIZING_E:
case META_GRAB_OP_KEYBOARD_RESIZING_SE:
case META_GRAB_OP_KEYBOARD_RESIZING_NE:
case META_GRAB_OP_KEYBOARD_RESIZING_SW:
case META_GRAB_OP_KEYBOARD_RESIZING_NW:
case META_GRAB_OP_KEYBOARD_MOVING:
return TRUE;
default:
return FALSE;
}
}
gboolean
meta_grab_op_is_keyboard (MetaGrabOp op)
{
@@ -1265,6 +1234,13 @@ meta_grab_op_is_moving (MetaGrabOp op)
}
}
gboolean
meta_grab_op_is_moving_or_resizing (MetaGrabOp op)
{
return (meta_grab_op_is_moving (op) ||
meta_grab_op_is_resizing (op));
}
gboolean
meta_grab_op_is_clicking (MetaGrabOp grab_op)
{