[PATCH] Fix bug https://bugs.freedesktop.org/show_bug.cgi?id=86889 by emitting session signals on TTY switches so that the weston backends can handle VT switching when not called from weston-launch

nerdopolis bluescreen_avenger at verizon.net
Sun Dec 7 07:15:29 PST 2014


---
 src/logind-util.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/logind-util.c b/src/logind-util.c
index 6a1b498..4308bb6 100644
--- a/src/logind-util.c
+++ b/src/logind-util.c
@@ -695,9 +695,15 @@ signal_event(int fd, uint32_t mask, void *data)
 	switch (sig.ssi_signo) {
 	case SIGUSR1:
 		ioctl(wl->vt, VT_RELDISP, 1);
+		wl->compositor->session_active=0;
+		wl_signal_emit(&wl->compositor->session_signal,
+		       wl->compositor);
 		break;
 	case SIGUSR2:
 		ioctl(wl->vt, VT_RELDISP, VT_ACKACQ);
+		wl->compositor->session_active=1;
+		wl_signal_emit(&wl->compositor->session_signal,
+		       wl->compositor);
 		break;
 	}
 
-- 
2.1.0



More information about the wayland-devel mailing list