Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix last switchws bugglet where the bar appeared empty.
[spectrwm.git]
/
scrotwm.c
diff --git
a/scrotwm.c
b/scrotwm.c
index
0d4fc1e
..
45e0787
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-185,6
+185,8
@@
bar_signal(int sig)
void
bar_toggle(union arg *args)
{
void
bar_toggle(union arg *args)
{
+ int i;
+
DNPRINTF(SWM_D_MISC, "bar_toggle\n");
if (bar_enabled) {
DNPRINTF(SWM_D_MISC, "bar_toggle\n");
if (bar_enabled) {
@@
-197,6
+199,8
@@
bar_toggle(union arg *args)
XMapWindow(display, bar_window);
}
XSync(display, False);
XMapWindow(display, bar_window);
}
XSync(display, False);
+ for (i = 0; i < SWM_WS_MAX; i++)
+ ws[i].restack = 1;
stack();
bar_print(); /* must be after stack */
stack();
bar_print(); /* must be after stack */
@@
-274,6
+278,7
@@
switchws(union arg *args)
ignore_enter = 1;
if (ws[wsid].restack) {
stack();
ignore_enter = 1;
if (ws[wsid].restack) {
stack();
+ bar_print();
} else {
if (ws[wsid].focus != NULL)
focus_win(ws[wsid].focus);
} else {
if (ws[wsid].focus != NULL)
focus_win(ws[wsid].focus);
@@
-334,6
+339,8
@@
stack(void)
winfocus->id = root;
winfocus->id = root;
+ ws[current_ws].restack = 0;
+
if (ws[current_ws].winno == 0)
return;
if (ws[current_ws].winno == 0)
return;