Fix warnings
This commit is contained in:
parent
e15c1936ac
commit
b7b0577aa9
@ -214,13 +214,4 @@ client_get_larger(struct tag *t, bool ignoring_tag)
|
|||||||
return lc;
|
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 */
|
#endif /* CLIENT_H */
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
#include "tag.h"
|
#include "tag.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "systray.h"
|
#include "systray.h"
|
||||||
|
#include "client.h"
|
||||||
|
|
||||||
#define ELEM_FREE_BARWIN(e) \
|
#define ELEM_FREE_BARWIN(e) \
|
||||||
while(!SLIST_EMPTY(&e->bars)) \
|
while(!SLIST_EMPTY(&e->bars)) \
|
||||||
@ -518,9 +519,10 @@ infobar_free(struct screen *s)
|
|||||||
void
|
void
|
||||||
uicb_infobar_toggle_hide(Uicb iname)
|
uicb_infobar_toggle_hide(Uicb iname)
|
||||||
{
|
{
|
||||||
|
struct client *c;
|
||||||
struct infobar *i;
|
struct infobar *i;
|
||||||
|
|
||||||
if (iname)
|
if(iname)
|
||||||
i = infobar_gb_name(iname);
|
i = infobar_gb_name(iname);
|
||||||
else
|
else
|
||||||
i = SLIST_FIRST(&W->screen->infobars);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
|
#include <X11/XKBlib.h>
|
||||||
|
|
||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -152,7 +153,7 @@ _historic_set(struct tag *t, bool prev)
|
|||||||
if(ev.type == KeyPress)
|
if(ev.type == KeyPress)
|
||||||
{
|
{
|
||||||
XKeyPressedEvent *ke = &ev.xkey;
|
XKeyPressedEvent *ke = &ev.xkey;
|
||||||
keysym = XKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0);
|
keysym = XkbKeycodeToKeysym(W->dpy, (KeyCode)ke->keycode, 0, 0);
|
||||||
|
|
||||||
_REV_BORDER();
|
_REV_BORDER();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user