compositor: force fade-in on start
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 5 Jan 2012 14:28:21 +0000 (16:28 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Thu, 5 Jan 2012 14:49:54 +0000 (16:49 +0200)
Weston initialises to faded-out state, which means all outputs are just
black, even if they render fine.

Previously the fade-in was triggered probably by some random input
event, since Weston was not guaranteed to wake up. Especially with the
drm backend, and the usual problem of not having permissions to input
devices, Weston would not fade in at all and appear broken.

Force Weston to fade in right after initialisation. This show that at
least rendering works, if it does not respond to any input.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.c

index eacae9c..819cb5d 100644 (file)
@@ -2207,6 +2207,7 @@ int main(int argc, char *argv[])
                exit(EXIT_FAILURE);
        }
 
+       weston_compositor_wake(ec);
        wl_display_run(display);
 
        /* prevent further rendering while shutting down */