seat: Enable VT process switching when switching away
This commit is contained in:
parent
98a4a4ff67
commit
afc3fa4b11
1 changed files with 2 additions and 2 deletions
|
@ -535,7 +535,7 @@ int seat_activate(struct seat *seat) {
|
||||||
log_info("acking pending VT switch");
|
log_info("acking pending VT switch");
|
||||||
seat->vt_pending_ack = false;
|
seat->vt_pending_ack = false;
|
||||||
if (seat->curttyfd != -1) {
|
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_keyboard(seat->curttyfd, true);
|
||||||
terminal_set_graphics(seat->curttyfd, false);
|
terminal_set_graphics(seat->curttyfd, false);
|
||||||
close(seat->curttyfd);
|
close(seat->curttyfd);
|
||||||
|
@ -548,7 +548,7 @@ int seat_activate(struct seat *seat) {
|
||||||
if (seat->next_vt > 0) {
|
if (seat->next_vt > 0) {
|
||||||
log_info("executing VT switch");
|
log_info("executing VT switch");
|
||||||
if (seat->curttyfd != -1) {
|
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_keyboard(seat->curttyfd, true);
|
||||||
terminal_set_graphics(seat->curttyfd, false);
|
terminal_set_graphics(seat->curttyfd, false);
|
||||||
close(seat->curttyfd);
|
close(seat->curttyfd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue