mirror of
https://github.com/NickHu/sway
synced 2024-12-30 22:23:30 +01:00
Render outputs as soon as wlc is ready
This makes sure that the outputs are rendered when sway is launched, so the user doesn't have to move the cursor before the background and bar gets rendered on screen. Fixes #509
This commit is contained in:
parent
c1517e5e40
commit
96458bf63c
1 changed files with 7 additions and 0 deletions
|
@ -680,6 +680,13 @@ static void handle_wlc_ready(void) {
|
||||||
free(line);
|
free(line);
|
||||||
list_del(config->cmd_queue, 0);
|
list_del(config->cmd_queue, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// render all outputs
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < root_container.children->length; ++i) {
|
||||||
|
swayc_t *output = root_container.children->items[i];
|
||||||
|
wlc_output_schedule_render(output->handle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlc_interface interface = {
|
struct wlc_interface interface = {
|
||||||
|
|
Loading…
Reference in a new issue