diff options
author | martynas | 2009-03-28 16:38:54 +0000 |
---|---|---|
committer | martynas | 2009-03-28 16:38:54 +0000 |
commit | a62bd9f2601bdf9c1973968518a8c2df70a0f420 (patch) | |
tree | 26643916e8bae9d1712ec6454ba1c907310ff271 | |
parent | 3b8599db32069734f229e242530b781a6e65126b (diff) | |
download | cwm-a62bd9f2601bdf9c1973968518a8c2df70a0f420.tar.gz |
- avoid shadowed Mask declaration in menu_filter
- make _xev_reincorporate static
evmask naming oga@, input okan@. ok okan@, oga@
Diffstat (limited to '')
-rw-r--r-- | menu.c | 10 | ||||
-rw-r--r-- | xevents.c | 4 |
2 files changed, 7 insertions, 7 deletions
@@ -73,7 +73,7 @@ menu_filter(struct menu_q *menuq, char *prompt, char *initial, int dummy, struct menu *mi = NULL; XEvent e; Window focuswin; - int Mask, focusrevert; + int evmask, focusrevert; sc = screen_current(); @@ -84,11 +84,11 @@ menu_filter(struct menu_q *menuq, char *prompt, char *initial, int dummy, xu_ptr_getpos(sc->rootwin, &mc.x, &mc.y); if (prompt == NULL) { - Mask = MenuMask; + evmask = MenuMask; mc.promptstr[0] = '\0'; mc.list = 1; } else { - Mask = MenuMask | KeyMask; /* only accept keys if prompt */ + evmask = MenuMask | KeyMask; /* only accept keys if prompt */ snprintf(mc.promptstr, sizeof(mc.promptstr), "%s%c", prompt, PROMPT_SCHAR); snprintf(mc.dispstr, sizeof(mc.dispstr), "%s%s%c", mc.promptstr, @@ -108,7 +108,7 @@ menu_filter(struct menu_q *menuq, char *prompt, char *initial, int dummy, XMoveResizeWindow(X_Dpy, sc->menuwin, mc.x, mc.y, mc.width, font_height()); - XSelectInput(X_Dpy, sc->menuwin, Mask); + XSelectInput(X_Dpy, sc->menuwin, evmask); XMapRaised(X_Dpy, sc->menuwin); if (xu_ptr_grab(sc->menuwin, MenuGrabMask, Cursor_question) < 0) { @@ -126,7 +126,7 @@ menu_filter(struct menu_q *menuq, char *prompt, char *initial, int dummy, for (;;) { mc.changed = 0; - XWindowEvent(X_Dpy, sc->menuwin, Mask, &e); + XWindowEvent(X_Dpy, sc->menuwin, evmask, &e); switch (e.type) { default: @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: xevents.c,v 1.38 2009/01/23 18:58:40 oga Exp $ + * $Id: xevents.c,v 1.39 2009/03/28 16:38:54 martynas Exp $ */ /* @@ -431,7 +431,7 @@ xev_register(struct xevent *xev) TAILQ_INSERT_TAIL(xq, xev, entry); } -void +static void _xev_reincorporate(void) { struct xevent *xev; |