From be45c480ec0792c7dfb97e39b4f5369b75593ae8 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Tue, 22 Sep 2020 01:00:18 +0200 Subject: terminal: Ack both release and acquire Linux only requires acking release and ignores ack of acquire, but FreeBSD is more stringent and will patiently wait for both to be acked. Implement proper acking for both events. --- include/seat.h | 2 +- include/terminal.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/seat.h b/include/seat.h index 2d269cc..cc21b7f 100644 --- a/include/seat.h +++ b/include/seat.h @@ -53,6 +53,6 @@ struct seat_device *seat_find_device(struct client *client, int device_id); int seat_set_next_session(struct client *client, int session); int seat_vt_activate(struct seat *seat); -int seat_prepare_vt_switch(struct seat *seat); +int seat_vt_release(struct seat *seat); #endif diff --git a/include/terminal.h b/include/terminal.h index 1215d8b..fb46ce3 100644 --- a/include/terminal.h +++ b/include/terminal.h @@ -8,7 +8,8 @@ int terminal_open(int vt); int terminal_set_process_switching(int fd, bool enable); int terminal_current_vt(int fd); int terminal_switch_vt(int fd, int vt); -int terminal_ack_switch(int fd); +int terminal_ack_release(int fd); +int terminal_ack_acquire(int fd); int terminal_set_keyboard(int fd, bool enable); int terminal_set_graphics(int fd, bool enable); -- cgit v1.2.3