diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-12-30 14:33:22 +0100 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-01-16 18:34:10 -0800 |
commit | 2ecb84a20dab56b9479186e5a32ae7aa31565756 (patch) | |
tree | 2e652fe916378254c622c031ed39bbd458444fc4 /src/compositor-fbdev.c | |
parent | 541b6047b6f7d51813bb3f2f3f4559be2475d54e (diff) | |
download | weston-2ecb84a20dab56b9479186e5a32ae7aa31565756.tar.gz |
logind: forward Active=true changes for non-DRM backends
Logind sends us a notification whenever the Active attribute of our session
changes. However, due to the way compositor-drm.c relies on the master DRM
device to be synced with the session, we used to delay Active=true
handling until the DRM device was up, too. See:
commit aedc7732ebd9bc7b4f51ee247ea857ffec6260a7
Author: David Herrmann <dh.herrmann@gmail.com>
Date: Sat Nov 30 11:25:45 2013 +0100
logind: delay wakeup until DRM-device is resumed
However, the other compositor backends do not use DRM, so logind-util will
never get notified about any DRM device. Therefore, we have to forward the
Active=true change immediately.
This commit fixes logind-util to take sync_drm as argument. If it is true,
we do DRM-device synchronisation, otherwise we don't.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=86889
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Tested-by: nerdopolis <bluescreen_avenger@verizon.net>
Diffstat (limited to 'src/compositor-fbdev.c')
-rw-r--r-- | src/compositor-fbdev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c index 65bb0352..805a195a 100644 --- a/src/compositor-fbdev.c +++ b/src/compositor-fbdev.c @@ -891,8 +891,9 @@ fbdev_compositor_create(struct wl_display *display, int *argc, char *argv[], compositor->session_listener.notify = session_notify; wl_signal_add(&compositor->base.session_signal, &compositor->session_listener); - compositor->base.launcher = - weston_launcher_connect(&compositor->base, param->tty, "seat0"); + compositor->base.launcher = weston_launcher_connect(&compositor->base, + param->tty, "seat0", + false); if (!compositor->base.launcher) { weston_log("fatal: fbdev backend should be run " "using weston-launch binary or as root\n"); |