aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/st.c b/st.c
index 2809592..66aca2d 100644
--- a/st.c
+++ b/st.c
@@ -3355,17 +3355,17 @@ focus(XEvent *ev) {
3355 } 3355 }
3356} 3356}
3357 3357
3358inline bool 3358static inline bool
3359match(uint mask, uint state) { 3359match(uint mask, uint state) {
3360 state &= ~(ignoremod); 3360 state &= ~ignoremod;
3361 3361
3362 if(mask == XK_NO_MOD && state) 3362 if(mask == XK_NO_MOD && state)
3363 return false; 3363 return false;
3364 if(mask != XK_ANY_MOD && mask != XK_NO_MOD && !state) 3364 if(mask != XK_ANY_MOD && mask != XK_NO_MOD && !state)
3365 return false; 3365 return false;
3366 if((state & mask) != state) 3366 if(mask == XK_ANY_MOD)
3367 return false; 3367 return true;
3368 return true; 3368 return state == mask;
3369} 3369}
3370 3370
3371void 3371void