summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-03-13 16:58:37 +0100
committerFurkan Sahin <furkan-dev@proton.me>2016-03-13 16:58:37 +0100
commit99a94495f4b7359bc963f8e65f1da236aeb3d1a8 (patch)
tree93411411ffe8048f395285e67958ff433386b587
parent644148a55dcbeae75659762c5c2f1e16f8ec2fd1 (diff)
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
-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 = {