Browse Source

Simplify logic in match().

master
Mark Edgar 11 years ago
committed by Roberto E. Vargas Caballero
parent
commit
1fa27b93f9
1 changed files with 1 additions and 9 deletions
  1. +1
    -9
      st.c

+ 1
- 9
st.c View File

@ -3501,15 +3501,7 @@ focus(XEvent *ev) {
static inline bool static inline bool
match(uint mask, uint state) { match(uint mask, uint state) {
state &= ~ignoremod;
if(mask == XK_NO_MOD && state)
return false;
if(mask != XK_ANY_MOD && mask != XK_NO_MOD && !state)
return false;
if(mask == XK_ANY_MOD)
return true;
return state == mask;
return mask == XK_ANY_MOD || mask == (state & ~ignoremod);
} }
void void


Loading…
Cancel
Save