[mutter] display: Fix the base type check inside is_keyboard



commit f2283ec6340672672db096a59b31d3875aeea551
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Aug 15 17:43:26 2014 -0400

    display: Fix the base type check inside is_keyboard

 src/core/display.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index e847df5..cf3cec3 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1179,7 +1179,7 @@ meta_grab_op_is_mouse (MetaGrabOp op)
 gboolean
 meta_grab_op_is_keyboard (MetaGrabOp op)
 {
-  if (GRAB_OP_GET_BASE_TYPE (op) == META_GRAB_OP_WINDOW_BASE)
+  if (GRAB_OP_GET_BASE_TYPE (op) != META_GRAB_OP_WINDOW_BASE)
     return FALSE;
 
   return (op & META_GRAB_OP_WINDOW_FLAG_KEYBOARD) != 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]