summaryrefslogtreecommitdiff
path: root/src/kmscon_seat.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-11-05 14:18:41 +0100
committerDavid Herrmann <dh.herrmann@googlemail.com>2012-11-05 14:18:41 +0100
commite7c8e7b5312dd8e05991ae9a7301f5749bf259c7 (patch)
tree06f01e5853bd26f2adb964453872837836aaafe4 /src/kmscon_seat.c
parent68af0640404334d71992e3366f4e9b2fec09c65a (diff)
uterm: vt: allow VT-deactivation to fail
If we dispatch VT-deactivation to child-processes, we might allow them to abort the VT-switch, so the upper layer (uterm_vt) must also allow us to abort the VT-switch. During shutdown, we need to force the deactivation to guarantee that a VT is inactive during shutdown. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'src/kmscon_seat.c')
-rw-r--r--src/kmscon_seat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kmscon_seat.c b/src/kmscon_seat.c
index 1d5c302..117b7e9 100644
--- a/src/kmscon_seat.c
+++ b/src/kmscon_seat.c
@@ -281,13 +281,14 @@ static void seat_remove_display(struct kmscon_seat *seat,
free(d);
}
-static int seat_vt_event(struct uterm_vt *vt, unsigned int event, void *data)
+static int seat_vt_event(struct uterm_vt *vt, struct uterm_vt_event *ev,
+ void *data)
{
struct kmscon_seat *seat = data;
struct shl_dlist *iter;
struct kmscon_display *d;
- switch (event) {
+ switch (ev->action) {
case UTERM_VT_ACTIVATE:
seat->awake = true;
if (seat->cb)