mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Use render_all_frames from bar_setup
This commit is contained in:
parent
6fe66d0e6c
commit
095ac31921
1 changed files with 8 additions and 10 deletions
|
@ -91,6 +91,13 @@ static const struct wl_registry_listener registry_listener = {
|
||||||
.global_remove = handle_global_remove,
|
.global_remove = handle_global_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void render_all_frames(struct swaybar *bar) {
|
||||||
|
struct swaybar_output *output;
|
||||||
|
wl_list_for_each(output, &bar->outputs, link) {
|
||||||
|
render_frame(bar, output);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void bar_setup(struct swaybar *bar,
|
void bar_setup(struct swaybar *bar,
|
||||||
const char *socket_path, const char *bar_id) {
|
const char *socket_path, const char *bar_id) {
|
||||||
bar_init(bar);
|
bar_init(bar);
|
||||||
|
@ -133,16 +140,7 @@ void bar_setup(struct swaybar *bar,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ipc_get_workspaces(bar);
|
ipc_get_workspaces(bar);
|
||||||
wl_list_for_each(output, &bar->outputs, link) {
|
render_all_frames(bar);
|
||||||
render_frame(bar, output);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void render_all_frames(struct swaybar *bar) {
|
|
||||||
struct swaybar_output *output;
|
|
||||||
wl_list_for_each(output, &bar->outputs, link) {
|
|
||||||
render_frame(bar, output);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void display_in(int fd, short mask, void *_bar) {
|
static void display_in(int fd, short mask, void *_bar) {
|
||||||
|
|
Loading…
Reference in a new issue