diff --git a/config.def.h b/config.def.h index 6b2737e..2a9c114 100644 --- a/config.def.h +++ b/config.def.h @@ -139,7 +139,7 @@ static KeySym mappedkeys[] = { -1 }; * Which bits of the state should be ignored. By default the state bit for the * keyboard layout (XK_SWITCH_MOD) is ignored. */ -uint ignoremod = XK_SWITCH_MOD; +static uint ignoremod = XK_SWITCH_MOD; /* key, mask, output, keypad, cursor, crlf */ static Key key[] = { diff --git a/st.c b/st.c index 2811876..61bf86c 100644 --- a/st.c +++ b/st.c @@ -685,7 +685,7 @@ selsort(void) { sel.ne.y = MAX(sel.ob.y, sel.oe.y); } -static inline bool +bool selected(int x, int y) { if(sel.ne.y == y && sel.nb.y == y) return BETWEEN(x, sel.nb.x, sel.ne.x); @@ -3360,7 +3360,7 @@ focus(XEvent *ev) { } } -inline bool +bool match(uint mask, uint state) { state &= ~(ignoremod);