diff options
Fix XK_NO_MOD and XK_ANY_MOD behavior
XK_NO_MOD match a key without modifiers and XK_ANY_MOD match a key does not
matter what modifiers are pressed to. Like they are mask the best value for
XK_ANY_MOD is all the bits to 1, so the and with any state will be equal to
the state. This also imply that is necessary check the case for XK_NO_MOD
(no modifiers at all) with some modifier in state, and the inverse
(some mask different to XK_ANY_MOD or XK_NO_MOD and no modifiers in state).
---
st.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
Diffstat (limited to '%2525252525253fid%2525252525253de7bb14e03e383daf2505ca304adca78b57884513%25252525253fid%25252525253d4389f2eb1b27f7a210e1f631e703c48a8ca8d50b%252525253fid%252525253d4389f2eb1b27f7a210e1f631e703c48a8ca8d50b&id2%252525253d88bb76c1bccbc8bb68b6776062cd2ef28bda8561%2525253fid%2525253d4389f2eb1b27f7a210e1f631e703c48a8ca8d50b&id2%2525253d88bb76c1bccbc8bb68b6776062cd2ef28bda8561%25253fid%25253d4389f2eb1b27f7a210e1f631e703c48a8ca8d50b&id2%25253d88bb76c1bccbc8bb68b6776062cd2ef28bda8561%253fid%253d4389f2eb1b27f7a210e1f631e703c48a8ca8d50b%3fid%3d88bb76c1bccbc8bb68b6776062cd2ef28bda8561?id=88bb76c1bccbc8bb68b6776062cd2ef28bda8561')
0 files changed, 0 insertions, 0 deletions
