aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-03-13 12:35:55 -0400
committerDrew DeVault <sir@cmpwn.com>2016-03-13 12:35:55 -0400
commit89ef36a7ba35792c9416eecdf4182ba5c2dc4894 (patch)
tree93411411ffe8048f395285e67958ff433386b587 /sway
parentc1517e5e40d29ed9cc2e29acf4f4e632b5338f25 (diff)
parent96458bf63c10a702797a8687e2f73d7814a6b079 (diff)
Merge pull request #510 from mikkeloscar/render-output-at-launch
Render outputs as soon as wlc is ready
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 = {