mirror of
https://github.com/NickHu/sway
synced 2024-11-16 19:49:56 +01:00
swaybar: only send initial workspace request if workspace buttons are enabled
This commit is contained in:
parent
19f0bf3864
commit
a388ffa127
1 changed files with 5 additions and 2 deletions
|
@ -567,8 +567,11 @@ bool bar_setup(struct swaybar *bar, const char *socket_path) {
|
||||||
pointer->cursor_surface = wl_compositor_create_surface(bar->compositor);
|
pointer->cursor_surface = wl_compositor_create_surface(bar->compositor);
|
||||||
assert(pointer->cursor_surface);
|
assert(pointer->cursor_surface);
|
||||||
|
|
||||||
ipc_get_workspaces(bar);
|
if (bar->config->workspace_buttons) {
|
||||||
set_bar_dirty(bar);
|
if (ipc_get_workspaces(bar)) {
|
||||||
|
set_bar_dirty(bar);
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue