summaryrefslogtreecommitdiff
path: root/plugins/common/msd-keygrab.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/common/msd-keygrab.c')
-rw-r--r--plugins/common/msd-keygrab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/common/msd-keygrab.c b/plugins/common/msd-keygrab.c
index a0f4105..d112ae9 100644
--- a/plugins/common/msd-keygrab.c
+++ b/plugins/common/msd-keygrab.c
@@ -240,7 +240,6 @@ match_key (Key *key, XEvent *event)
}
/* The key we passed doesn't have a keysym, so try with just the keycode */
- return (key != NULL
- && key->state == (event->xkey.state & msd_used_mods)
+ return (key->state == (event->xkey.state & msd_used_mods)
&& key_uses_keycode (key, event->xkey.keycode));
}