From 50fb82ec80847c7dca113d3f848b0bf75be6df92 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Thu, 29 May 2025 15:42:35 +0100 Subject: allow mod + alt --- src/parser.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index 0d086a2..eb6ba21 100644 --- a/src/parser.c +++ b/src/parser.c @@ -32,14 +32,6 @@ static const struct { static void remap_and_dedupe_binds(Config *cfg) { - for (int i = 0; i < cfg->bindsn; i++) { - Binding *b = &cfg->binds[i]; - if (b->mods & (Mod1Mask | Mod4Mask)) { - unsigned others = b->mods & ~(Mod1Mask | Mod4Mask); - b->mods = others | cfg->modkey; - } - } - for (int i = 0; i < cfg->bindsn; i++) { for (int j = i + 1; j < cfg->bindsn; j++) { if (cfg->binds[i].mods == cfg->binds[j].mods && cfg->binds[i].keysym == cfg->binds[j].keysym) { -- cgit v1.2.3