1
0
Fork 0

display: Fix inversion for meta_grab_op_is_*

*sigh*, the inline function was supposed to prevent mistakes like this.
This commit is contained in:
Jasper St. Pierre 2014-08-16 15:23:19 -04:00
parent 527c53a2a0
commit 226a09b38c

View file

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