aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-13 16:58:37 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-13 17:13:30 +0100
commit96458bf63c10a702797a8687e2f73d7814a6b079 (patch)
tree93411411ffe8048f395285e67958ff433386b587 /sway
parentc1517e5e40d29ed9cc2e29acf4f4e632b5338f25 (diff)
downloadsway-96458bf63c10a702797a8687e2f73d7814a6b079.tar.xz
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
Diffstat (limited to 'sway')
-rw-r--r--sway/handlers.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 69f325eb..ba0c832e 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -680,6 +680,13 @@ static void handle_wlc_ready(void) {
free(line);
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 = {