display: Fix inversion for meta_grab_op_is_*
*sigh*, the inline function was supposed to prevent mistakes like this.
This commit is contained in:
parent
527c53a2a0
commit
226a09b38c
1 changed files with 4 additions and 4 deletions
|
@ -1176,7 +1176,7 @@ grab_op_is_window (MetaGrabOp op)
|
|||
gboolean
|
||||
meta_grab_op_is_mouse (MetaGrabOp op)
|
||||
{
|
||||
if (grab_op_is_window (op))
|
||||
if (!grab_op_is_window (op))
|
||||
return FALSE;
|
||||
|
||||
return (op & META_GRAB_OP_WINDOW_FLAG_KEYBOARD) == 0;
|
||||
|
@ -1185,7 +1185,7 @@ meta_grab_op_is_mouse (MetaGrabOp op)
|
|||
gboolean
|
||||
meta_grab_op_is_keyboard (MetaGrabOp op)
|
||||
{
|
||||
if (grab_op_is_window (op))
|
||||
if (!grab_op_is_window (op))
|
||||
return FALSE;
|
||||
|
||||
return (op & META_GRAB_OP_WINDOW_FLAG_KEYBOARD) != 0;
|
||||
|
@ -1194,7 +1194,7 @@ meta_grab_op_is_keyboard (MetaGrabOp op)
|
|||
gboolean
|
||||
meta_grab_op_is_resizing (MetaGrabOp op)
|
||||
{
|
||||
if (grab_op_is_window (op))
|
||||
if (!grab_op_is_window (op))
|
||||
return FALSE;
|
||||
|
||||
return (op & META_GRAB_OP_WINDOW_DIR_MASK) != 0;
|
||||
|
@ -1203,7 +1203,7 @@ meta_grab_op_is_resizing (MetaGrabOp op)
|
|||
gboolean
|
||||
meta_grab_op_is_moving (MetaGrabOp op)
|
||||
{
|
||||
if (grab_op_is_window (op))
|
||||
if (!grab_op_is_window (op))
|
||||
return FALSE;
|
||||
|
||||
return (op & META_GRAB_OP_WINDOW_DIR_MASK) == 0;
|
||||
|
|
Loading…
Reference in a new issue