From afc3fa4b1107793d73540d777675950014898faa Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 3 Aug 2020 21:21:34 +0200 Subject: seat: Enable VT process switching when switching away --- seatd/seat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'seatd/seat.c') diff --git a/seatd/seat.c b/seatd/seat.c index 6358f7d..8650e2b 100644 --- a/seatd/seat.c +++ b/seatd/seat.c @@ -535,7 +535,7 @@ int seat_activate(struct seat *seat) { log_info("acking pending VT switch"); seat->vt_pending_ack = false; if (seat->curttyfd != -1) { - terminal_set_process_switching(seat->curttyfd, false); + terminal_set_process_switching(seat->curttyfd, true); terminal_set_keyboard(seat->curttyfd, true); terminal_set_graphics(seat->curttyfd, false); close(seat->curttyfd); @@ -548,7 +548,7 @@ int seat_activate(struct seat *seat) { if (seat->next_vt > 0) { log_info("executing VT switch"); if (seat->curttyfd != -1) { - terminal_set_process_switching(seat->curttyfd, false); + terminal_set_process_switching(seat->curttyfd, true); terminal_set_keyboard(seat->curttyfd, true); terminal_set_graphics(seat->curttyfd, false); close(seat->curttyfd); -- cgit v1.2.3