compositor-drm: log enter/leave VT
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@gmail.com>
This commit is contained in:
parent
42b3f6ae64
commit
81a13a3757
@ -2100,6 +2100,7 @@ vt_func(struct weston_compositor *compositor, int event)
|
|||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case TTY_ENTER_VT:
|
case TTY_ENTER_VT:
|
||||||
|
weston_log("entering VT\n");
|
||||||
compositor->focus = 1;
|
compositor->focus = 1;
|
||||||
if (weston_launcher_drm_set_master(&ec->base, ec->drm.fd, 1)) {
|
if (weston_launcher_drm_set_master(&ec->base, ec->drm.fd, 1)) {
|
||||||
weston_log("failed to set master: %m\n");
|
weston_log("failed to set master: %m\n");
|
||||||
@ -2114,6 +2115,7 @@ vt_func(struct weston_compositor *compositor, int event)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TTY_LEAVE_VT:
|
case TTY_LEAVE_VT:
|
||||||
|
weston_log("leaving VT\n");
|
||||||
wl_list_for_each(seat, &compositor->seat_list, link) {
|
wl_list_for_each(seat, &compositor->seat_list, link) {
|
||||||
evdev_disable_udev_monitor(seat);
|
evdev_disable_udev_monitor(seat);
|
||||||
evdev_remove_devices(seat);
|
evdev_remove_devices(seat);
|
||||||
|
Loading…
Reference in New Issue
Block a user