mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 18:01:37 -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 max_stack(struct workspace *, struct swm_geometry *);
|
||||||
|
|
||||||
void grabbuttons(struct ws_win *, int);
|
void grabbuttons(struct ws_win *, int);
|
||||||
|
void new_region(struct swm_screen *, int, int, int, int);
|
||||||
|
|
||||||
struct layout {
|
struct layout {
|
||||||
void (*l_stack)(struct workspace *, struct swm_geometry *);
|
void (*l_stack)(struct workspace *, struct swm_geometry *);
|
||||||
|
@ -437,8 +438,6 @@ setscreencolor(char *val, int i, int c)
|
||||||
i, ScreenCount(display));
|
i, ScreenCount(display));
|
||||||
}
|
}
|
||||||
|
|
||||||
void new_region(struct swm_screen *, int, int, int, int);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
custom_region(char *val)
|
custom_region(char *val)
|
||||||
{
|
{
|
||||||
|
@ -2790,6 +2789,11 @@ screenchange(XEvent *e) {
|
||||||
TAILQ_FOREACH(r, &screens[i].rl, entry)
|
TAILQ_FOREACH(r, &screens[i].rl, entry)
|
||||||
TAILQ_FOREACH(win, &r->ws->winlist, entry)
|
TAILQ_FOREACH(win, &r->ws->winlist, entry)
|
||||||
XUnmapWindow(display, win->id);
|
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();
|
stack();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue