diff options
| author | Abhinav <abhinav.prsai@gmail.com> | 2025-05-29 15:42:35 +0100 |
|---|---|---|
| committer | Abhinav <abhinav.prsai@gmail.com> | 2025-05-29 15:42:35 +0100 |
| commit | 50fb82ec80847c7dca113d3f848b0bf75be6df92 (patch) | |
| tree | 4d0298283c67f0e008f9e0ee4e7c7480329d1ff8 /src/parser.c | |
| parent | fe66c602b5d540f2e20ef346b5acfa64ef611ca7 (diff) | |
allow mod + alt
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/parser.c b/src/parser.c index 0d086a2..eb6ba21 100644 --- a/src/parser.c +++ b/src/parser.c @@ -33,14 +33,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) { memmove(&cfg->binds[j], &cfg->binds[j + 1], sizeof(Binding) * (cfg->bindsn - j - 1)); |
