aboutsummaryrefslogtreecommitdiff
path: root/foot-server@.socket
diff options
context:
space:
mode:
authorCismonX <admin@cismon.net>2026-08-30 23:41:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-09-02 05:51:03 +0000
commit1c4cfc2dfce5698411a552f056535f9a2fb2a6f6 (patch)
treeed07e3290edf4252e81ebe5abe7f6135199d8f44 /foot-server@.socket
parentconfig: fix error message for modifiers conflict (diff)
config: fix modifiers conflict check
Currently, if a mouse binding contains _any_ modifier key set in config 'selection-override-modifiers', it does not work since these modifiers get unset in function 'match_mouse_binding()'. Function 'resolve_key_binding_collisions()' is supposed to detect this and display an error message, however, it does not work unless the conflicting modifiers are identical. For example, given the following config options: selection-override-modifiers=Control+Shift select-begin-block=Control+BTN_LEFT Foot does not display an error message for this, but if you try to select text with 'Control+BTN_LEFT', it behaves as if only 'BTN_LEFT' is pressed. This is due to function 'modifiers_disjoint()' being implemented as "not equal" rather than "disjoint". Fixed by properly implementing this function. Also clarify the 'selection-override-modifiers' config option in the man page. As a side effect, this also fixes 'selection-override-modifiers=none' conflicting with mouse bindings that do not contain modifier keys (an empty set is disjoint with itself).
Diffstat (limited to 'foot-server@.socket')
0 files changed, 0 insertions, 0 deletions