From 226a09b38c4157ddb13f09a81641b9d81bbaa3bc Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 16 Aug 2014 15:23:19 -0400 Subject: [PATCH] display: Fix inversion for meta_grab_op_is_* *sigh*, the inline function was supposed to prevent mistakes like this. --- src/core/display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index 71883cfc8..a6c5612f5 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -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;