aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/st.c b/st.c
index 8cfa2f7..da2ce3f 100644
--- a/st.c
+++ b/st.c
@@ -3501,15 +3501,7 @@ focus(XEvent *ev) {
3501 3501
3502static inline bool 3502static inline bool
3503match(uint mask, uint state) { 3503match(uint mask, uint state) {
3504 state &= ~ignoremod; 3504 return mask == XK_ANY_MOD || mask == (state & ~ignoremod);
3505
3506 if(mask == XK_NO_MOD && state)
3507 return false;
3508 if(mask != XK_ANY_MOD && mask != XK_NO_MOD && !state)
3509 return false;
3510 if(mask == XK_ANY_MOD)
3511 return true;
3512 return state == mask;
3513} 3505}
3514 3506
3515void 3507void