]> git.sur5r.net Git - i3/i3/commitdiff
remove superfluous check for input_type
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 2 Aug 2016 17:31:23 +0000 (19:31 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 2 Aug 2016 17:31:23 +0000 (19:31 +0200)
This condition is already enforced in grab_all_keys().

src/bindings.c

index 759cfff96926d401b1271a28f20ea1ec0032d33f..ed6ce60846f85fcd874e5fca4f65a323bc5c95cf 100644 (file)
@@ -99,9 +99,6 @@ Binding *configure_binding(const char *bindtype, const char *modifiers, const ch
 }
 
 static void grab_keycode_for_binding(xcb_connection_t *conn, Binding *bind, uint32_t keycode) {
-    if (bind->input_type != B_KEYBOARD)
-        return;
-
 /* Grab the key in all combinations */
 #define GRAB_KEY(modifier)                                                                       \
     do {                                                                                         \