aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-09-22 01:00:18 +0200
committerKenny Levinsen <kl@kl.wtf>2020-09-22 01:14:24 +0200
commitbe45c480ec0792c7dfb97e39b4f5369b75593ae8 (patch)
treee7d8a7e18d45269db06b55427a4b7ca5d7d23e19 /include
parentba4c4226595598f6e3f9712eed6c04c49b7399e5 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/seat.h2
-rw-r--r--include/terminal.h3
2 files changed, 3 insertions, 2 deletions
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);