Fix missing bars when going multiscreen or in freebsd. Reported by

Tom Doherty <tdoherty@nyx.com>
This commit is contained in:
Marco Peereboom 2009-02-12 22:09:44 +00:00
parent 9a45e3891c
commit 76ccafd502

View file

@ -249,6 +249,7 @@ void horizontal_stack(struct workspace *, struct swm_geometry *);
void max_stack(struct workspace *, struct swm_geometry *);
void grabbuttons(struct ws_win *, int);
void new_region(struct swm_screen *, int, int, int, int);
struct layout {
void (*l_stack)(struct workspace *, struct swm_geometry *);
@ -437,8 +438,6 @@ setscreencolor(char *val, int i, int c)
i, ScreenCount(display));
}
void new_region(struct swm_screen *, int, int, int, int);
void
custom_region(char *val)
{
@ -2790,6 +2789,11 @@ screenchange(XEvent *e) {
TAILQ_FOREACH(r, &screens[i].rl, entry)
TAILQ_FOREACH(win, &r->ws->winlist, entry)
XUnmapWindow(display, win->id);
/* add bars to all regions */
for (i = 0; i < ScreenCount(display); i++)
TAILQ_FOREACH(r, &screens[i].rl, entry)
bar_setup(r);
stack();
}