display: Fix the base type check inside is_keyboard

This commit is contained in:
Jasper St. Pierre 2014-08-15 17:43:26 -04:00
parent d06e4beb7f
commit f2283ec634

View File

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