mirror of
https://github.com/vale981/spectrwm
synced 2025-03-04 17:31:40 -05:00
Fix missing bars when going multiscreen or in freebsd. Reported by
Tom Doherty <tdoherty@nyx.com>
This commit is contained in:
parent
9a45e3891c
commit
76ccafd502
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue