aboutsummaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-02-27 16:56:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-03-03 17:29:22 +0000
commit9a5a2d9957d8421b815d8ab07e867e73112b9591 (patch)
tree192e931c35f3bd5155ba875d6475be14187aba8e /render.h
parentrender: resize: call xdg_toplevel_set_min_size() (diff)
key-binding: sort binding lists
Sort bindings such that bindings with the same symbol are sorted with the binding having the most modifiers comes first. This fixes an issue where the “wrong” key binding are triggered when used with “consumed” modifiers. For example: if Control+BackSpace is bound before Control+Shift+BackSpace, then the latter binding is never triggered. Why? Because Shift is a consumed modifier. This means Control+BackSpace is “the same” as Control+Shift+BackSpace. By sorting bindings with more modifiers first, we work around the problem. But note that it is *just* a workaround, and I’m not confident there aren’t cases where it doesn’t work. Closes #1280
Diffstat (limited to 'render.h')
0 files changed, 0 insertions, 0 deletions