summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-03-13 12:35:55 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-03-13 12:35:55 -0400
commit89ef36a7ba35792c9416eecdf4182ba5c2dc4894 (patch)
tree93411411ffe8048f395285e67958ff433386b587
parentFix default config's split binding (diff)
parentRender outputs as soon as wlc is ready (diff)
downloadsway-89ef36a7ba35792c9416eecdf4182ba5c2dc4894.tar.gz
sway-89ef36a7ba35792c9416eecdf4182ba5c2dc4894.tar.zst
sway-89ef36a7ba35792c9416eecdf4182ba5c2dc4894.zip
Merge pull request #510 from mikkeloscar/render-output-at-launch
Render outputs as soon as wlc is ready
-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) {
680 free(line); 680 free(line);
681 list_del(config->cmd_queue, 0); 681 list_del(config->cmd_queue, 0);
682 } 682 }
683
684 // render all outputs
685 int i;
686 for (i = 0; i < root_container.children->length; ++i) {
687 swayc_t *output = root_container.children->items[i];
688 wlc_output_schedule_render(output->handle);
689 }
683} 690}
684 691
685struct wlc_interface interface = { 692struct wlc_interface interface = {