summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2021-12-18 15:17:41 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2021-12-18 15:20:53 +0000
commitae0aed1847b3dacaee26ff67b6e6796961d2d2ff (patch)
tree4f4b3cba58dfe34a550f0283140a17cad4c2f310
parent0636827a7f91925308e07bf3352ab17bfa51c46e (diff)
Fix !XSERVER_PLATFORM_BUS build after !797xserver-cygwin-21.1.2-2xserver-cygwin-21.1.2-1
-rw-r--r--hw/xfree86/common/xf86Events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 6076efa80..9c9037a5a 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -382,6 +382,7 @@ xf86VTLeave(void)
for (i = 0; i < xf86NumGPUScreens; i++)
xf86GPUScreens[i]->LeaveVT(xf86GPUScreens[i]);
+#ifdef XSERVER_PLATFORM_BUS
if (systemd_logind_controls_session()) {
for (i = 0; i < xf86_num_platform_devices; i++) {
if (xf86_platform_devices[i].flags & XF86_PDEV_SERVER_FD) {
@@ -392,6 +393,7 @@ xf86VTLeave(void)
}
}
}
+#endif
if (!xf86VTSwitchAway())
goto switch_failed;