sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 96458bf63c10a702797a8687e2f73d7814a6b079
parent c1517e5e40d29ed9cc2e29acf4f4e632b5338f25
Author: Mikkel Oscar Lyderik <mikkeloscar@gmail.com>
Date:   Sun, 13 Mar 2016 16:58:37 +0100

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:
Msway/handlers.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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 = {