diff options
author | Martin Duquesnoy <xorg62@gmail.com> | 2012-06-22 19:23:40 +0200 |
---|---|---|
committer | Martin Duquesnoy <xorg62@gmail.com> | 2012-06-22 19:23:40 +0200 |
commit | b7b0577aa937885f3ad9f6428312d33420dfb71a (patch) | |
tree | e60b240da2961e371190c5c98f2e5ac8794d71aa | |
parent | e15c1936ac304eb500b6049f40366538ed71a220 (diff) | |
download | wmfs-b7b0577aa937885f3ad9f6428312d33420dfb71a.zip wmfs-b7b0577aa937885f3ad9f6428312d33420dfb71a.tar.gz wmfs-b7b0577aa937885f3ad9f6428312d33420dfb71a.tar.bz2 |
Fix warnings
-rw-r--r-- | src/client.h | 9 | ||||
-rw-r--r-- | src/infobar.c | 8 | ||||
-rw-r--r-- | src/layout.c | 3 |
3 files changed, 7 insertions, 13 deletions
diff --git a/src/client.h b/src/client.h index c896b9c..ad190ac 100644 --- a/src/client.h +++ b/src/client.h @@ -214,13 +214,4 @@ client_get_larger(struct tag *t, bool ignoring_tag) return lc; } -static inline void -clients_layout_refresh(void) -{ - struct client *c; - - SLIST_FOREACH(c, &W->h.client, next) - layout_fix_hole(c); -} - #endif /* CLIENT_H */ diff --git a/src/infobar.c b/src/infobar.c index 091d47c..1e48de2 100644 --- a/src/infobar.c +++ b/src/infobar.c @@ -11,6 +11,7 @@ #include "tag.h" #include "status.h" #include "systray.h" +#include "client.h" #define ELEM_FREE_BARWIN(e) \ while(!SLIST_EMPTY(&e->bars)) \ @@ -518,9 +519,10 @@ infobar_free(struct screen *s) void uicb_infobar_toggle_hide(Uicb iname) { + struct client *c; struct infobar *i; - if (iname) + if(iname) i = infobar_gb_name(iname); else i = SLIST_FIRST(&W->screen->infobars); @@ -557,6 +559,6 @@ uicb_infobar_toggle_hide(Uicb iname) } } - clients_layout_refresh(); + SLIST_FOREACH(c, &W->h.client, next) + layout_fix_hole(c); } - diff --git a/src/layout.c b/src/layout.c index b73cea6..d7d3143 100644 --- a/src/layout.c +++ b/src/layout.c @@ -4,6 +4,7 @@ */ #include <X11/Xutil.h> +#include <X11/XKBlib.h> #include "layout.h" #include "config.h" @@ -152,7 +153,7 @@ _historic_set(struct tag *t, bool prev) if(ev.type == KeyPress) { XKeyPressedEvent *ke = &ev.xkey; - keysym = XKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0); + keysym = XkbKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0, 0); _REV_BORDER(); |