summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-11-24 12:44:05 +0100
committerGitHub <noreply@github.com>2021-11-24 12:44:05 +0100
commit43960312333bc9d9a6a8a95fff3563044856eccf (patch)
treed8858317d04c9e08562648e33cef3910b2ef9fe0 /main.c
parent0262988671d41a2828614822ebad645cf9b780b9 (diff)
downloadnsxiv-43960312333bc9d9a6a8a95fff3563044856eccf.tar.zst
switch back to whitelisting modifers (#150)
* Revert "Allow any set of modifiers to be used in keybindings" this keeps things equal with sxiv while giving users possibility to customize USED_MODMASK if they wish. This reverts commit 3234b0e521cca006a94cb135a88d146122d7f66d. Closes: https://github.com/nsxiv/nsxiv/issues/149 Closes: https://github.com/nsxiv/nsxiv/issues/123 Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 85d498d..5bcc90e 100644
--- a/main.c
+++ b/main.c
@@ -36,7 +36,7 @@
#include <X11/keysym.h>
#include <X11/XF86keysym.h>
-#define MODMASK(mask) ((mask) & ~ignore_mask)
+#define MODMASK(mask) ((mask) & USED_MODMASK)
#define BAR_SEP " "
typedef struct {