mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-29 07:58:21 -04:00
allow side mouse buttons for mouse binding without mod
This commit is contained in:
parent
49921eadfa
commit
27b7dcf23a
1 changed files with 1 additions and 1 deletions
|
|
@ -1950,7 +1950,7 @@ buttonpress(struct wl_listener *listener, void *data) {
|
||||||
m = &config.mouse_bindings[ji];
|
m = &config.mouse_bindings[ji];
|
||||||
if (CLEANMASK(mods) == CLEANMASK(m->mod) &&
|
if (CLEANMASK(mods) == CLEANMASK(m->mod) &&
|
||||||
event->button == m->button && m->func &&
|
event->button == m->button && m->func &&
|
||||||
(selmon->isoverview == 1 || m->button == BTN_MIDDLE) && c) {
|
(selmon->isoverview == 1 || m->button == BTN_MIDDLE || m->button == BTN_SIDE || m->button == BTN_EXTRA) && c) {
|
||||||
m->func(&m->arg);
|
m->func(&m->arg);
|
||||||
return;
|
return;
|
||||||
} else if (CLEANMASK(mods) == CLEANMASK(m->mod) &&
|
} else if (CLEANMASK(mods) == CLEANMASK(m->mod) &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue