weston/src
David Herrmann 2ecb84a20d 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 aedc7732eb
    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>
2015-01-16 18:34:10 -08:00
..
animation.c animation: also change stop value when updating a fade target 2014-07-30 10:54:23 -07:00
bindings.c input: swallow the key press event when running a compositor key binding 2014-12-15 17:41:25 +02:00
clipboard.c clipboard: set fd member of clipboard_source 2014-12-12 15:01:17 +02:00
cms-colord.c cosmetic: replace boolean function return values with bool 2014-11-04 12:45:49 +02:00
cms-helper.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
cms-helper.h Add more missing config.h includes 2013-08-16 10:56:00 -07:00
cms-static.c malloc + memset -> zalloc 2013-08-08 13:46:13 -07:00
compositor-drm.c logind: forward Active=true changes for non-DRM backends 2015-01-16 18:34:10 -08:00
compositor-fbdev.c logind: forward Active=true changes for non-DRM backends 2015-01-16 18:34:10 -08:00
compositor-headless.c compositor-headless: add support for transforms set on command line 2014-11-21 16:30:42 +02:00
compositor-rdp.c compositor: Refactor weston_output_mode_switch() 2014-11-05 13:15:13 +02:00
compositor-rpi.c logind: forward Active=true changes for non-DRM backends 2015-01-16 18:34:10 -08:00
compositor-wayland.c backends: refactor transform string parsing 2014-11-19 16:46:56 +02:00
compositor-x11.c compositor-x11: Fix some shutdown crashes 2014-12-19 14:27:05 +02:00
compositor.c compositor: Propagate errors from module_init 2014-12-15 16:10:09 +02:00
compositor.h compositor: Implement JSON-timeline logging 2014-12-08 15:02:56 +02:00
data-device.c compositor: add weston_surface_set_label_func() 2014-12-08 14:20:20 +02:00
dbus.c dbus: add dbus-match helpers 2013-10-21 16:07:10 -07:00
dbus.h dbus: add dbus-match helpers 2013-10-21 16:07:10 -07:00
gl-renderer.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
gl-renderer.h gl-renderer: Remove gl_renderer_interface from gl-renderer.h 2014-04-21 15:43:05 -07:00
input.c input: Add comment explaining why pointer isn't freed when device is removed 2015-01-08 10:58:33 +08:00
launcher-util.c logind: forward Active=true changes for non-DRM backends 2015-01-16 18:34:10 -08:00
launcher-util.h logind: forward Active=true changes for non-DRM backends 2015-01-16 18:34:10 -08:00
libbacklight.c backlight: fix backlight_path memory leak 2014-01-19 21:58:53 -08:00
libbacklight.h Fix a few -pedantic warnings 2012-05-10 14:11:44 -04:00
libinput-device.c libinput-device: use the discrete axis value for wheel events 2015-01-15 14:41:56 +08:00
libinput-device.h Add libinput based input device backend 2014-03-12 14:55:22 -07:00
libinput-seat.c libinput: default to INFO log level 2014-09-12 12:15:44 +03:00
libinput-seat.h Add libinput based input device backend 2014-03-12 14:55:22 -07:00
log.c log: print dummy timestamp if localtime call fails 2014-01-19 21:58:57 -08:00
logind-util.c logind: forward Active=true changes for non-DRM backends 2015-01-16 18:34:10 -08:00
logind-util.h logind: forward Active=true changes for non-DRM backends 2015-01-16 18:34:10 -08:00
noop-renderer.c noop-renderer: Read the shm buffer contents on attach 2014-02-18 13:49:21 -08:00
pixman-renderer.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
pixman-renderer.h Add more missing config.h includes 2013-08-16 10:56:00 -07:00
rpi-bcm-stubs.h rpi: Support opaque regions 2013-12-02 11:36:29 -08:00
rpi-renderer.c rpi-renderer: don't pass a box to pixman_region32_contains_point() 2014-12-01 14:30:28 +02:00
rpi-renderer.h rpi: Support opaque regions 2013-12-02 11:36:29 -08:00
screen-share.c Don't protect xkb_*_unref from NULL 2014-08-20 01:05:16 -07:00
screenshooter.c screenshooter: fix various memory handling 2014-12-12 14:52:29 +02:00
spring-tool.c animation: ensure repaints are always scheduled during animations 2014-06-18 17:14:40 -07:00
text-backend.c text: Don't crash if a seat has no keyboard 2014-12-16 16:05:48 +02:00
timeline-object.h compositor: Implement JSON-timeline logging 2014-12-08 15:02:56 +02:00
timeline.c compositor: Implement JSON-timeline logging 2014-12-08 15:02:56 +02:00
timeline.h compositor: Implement JSON-timeline logging 2014-12-08 15:02:56 +02:00
vaapi-recorder.c Use zalloc instead of calloc(1, ...) 2014-11-28 16:13:13 +02:00
vaapi-recorder.h vaapi-recorder: Don't loop trying to write on out of space condition 2014-05-09 14:12:38 -07:00
version.h.in Document WESTON_VERSION_AT_LEAST() macro behavior 2014-01-27 12:07:19 -08:00
vertex-clipping.c Don't underrun the vertex array of empty polygons 2014-08-20 11:43:26 +03:00
vertex-clipping.h Remove dependency on <GLES2/gl2.h> by replacing GLfloat with float 2013-11-27 22:49:31 -08:00
weston-egl-ext.h nested: add missing egl extension declaration 2014-08-27 16:44:31 +03:00
weston-launch.c cosmetic: replace boolean function return values with bool 2014-11-04 12:45:49 +02:00
weston-launch.h launcher: Handle drm set/drop master and vt switch signals in launcher 2013-09-18 11:14:14 -07:00
weston.pc.in weston.pc: Added libexecdir and pkglibexecdir variables 2013-06-04 00:14:04 -04:00
zoom.c Apply the zoom transformation before the output transformation 2014-05-06 15:36:55 -07:00