[PATCH weston 14/17] compositor-drm: log enter/leave VT

Pekka Paalanen ppaalanen at gmail.com
Thu Jul 5 03:33:11 PDT 2012


All input devices are re-added during enter VT, so these messages in the
log will clarify what happened with input.

Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
---
 src/compositor-drm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 8e48960..8b75543 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -1767,6 +1767,7 @@ vt_func(struct weston_compositor *compositor, int event)
 
 	switch (event) {
 	case TTY_ENTER_VT:
+		weston_log("entering VT\n");
 		compositor->focus = 1;
 		if (weston_launcher_drm_set_master(&ec->base, ec->drm.fd, 1)) {
 			weston_log("failed to set master: %m\n");
@@ -1781,6 +1782,7 @@ vt_func(struct weston_compositor *compositor, int event)
 		}
 		break;
 	case TTY_LEAVE_VT:
+		weston_log("leaving VT\n");
 		wl_list_for_each(seat, &compositor->seat_list, link) {
 			uevdev_disable_udev_monitor(seat);
 			uevdev_remove_devices(seat);
-- 
1.7.8.6



More information about the wayland-devel mailing list