From 2ecb84a20dab56b9479186e5a32ae7aa31565756 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Tue, 30 Dec 2014 14:33:22 +0100 Subject: 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 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 Reviewed-by: Bryce Harrington Tested-by: nerdopolis --- src/launcher-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/launcher-util.h') diff --git a/src/launcher-util.h b/src/launcher-util.h index d5b2fc98..a60f8a1a 100644 --- a/src/launcher-util.h +++ b/src/launcher-util.h @@ -31,7 +31,7 @@ struct weston_launcher; struct weston_launcher * weston_launcher_connect(struct weston_compositor *compositor, int tty, - const char *seat_id); + const char *seat_id, bool sync_drm); void weston_launcher_destroy(struct weston_launcher *launcher); -- cgit v1.2.1