diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-17 21:51:15 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-06-17 21:51:15 +0530 |
| commit | 98e5ca889bb8ecded7438d9ead882bdbe7a253a7 (patch) | |
| tree | dcd15703f94ca6de12807ecefdf241c2af601528 /hotkeythingy.c | |
| parent | 14f9b1be647e22418cc9d42b0081f779878cfb8d (diff) | |
| download | shotkey-98e5ca889bb8ecded7438d9ead882bdbe7a253a7.tar.gz shotkey-98e5ca889bb8ecded7438d9ead882bdbe7a253a7.zip | |
todo + clen
Diffstat (limited to 'hotkeythingy.c')
| -rw-r--r-- | hotkeythingy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotkeythingy.c b/hotkeythingy.c index 9f02e45..827bc12 100644 --- a/hotkeythingy.c +++ b/hotkeythingy.c @@ -97,7 +97,7 @@ void run(Display* dpy, Window win, Command command) { current_mode = command.mode; is_mode_persistent = command.persist; - if (modes[current_mode] && current_mode < LENGTH(modes)) { + if (current_mode < LENGTH(modes) && modes[current_mode]) { for (i = 0; i < LENGTH(modes[current_mode]); i++) { mode_key = modes[current_mode][i]; bind_key(dpy, win, mode_key.mod, mode_key.key); |
