summaryrefslogtreecommitdiff
path: root/libweston/launcher-direct.c
diff options
context:
space:
mode:
Diffstat (limited to 'libweston/launcher-direct.c')
-rw-r--r--libweston/launcher-direct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libweston/launcher-direct.c b/libweston/launcher-direct.c
index d59de1bd..9fa329b6 100644
--- a/libweston/launcher-direct.c
+++ b/libweston/launcher-direct.c
@@ -104,14 +104,14 @@ vt_handler(int signal_number, void *data)
struct weston_compositor *compositor = launcher->compositor;
if (compositor->session_active) {
- compositor->session_active = 0;
+ compositor->session_active = false;
wl_signal_emit(&compositor->session_signal, compositor);
drmDropMaster(launcher->drm_fd);
ioctl(launcher->tty, VT_RELDISP, 1);
} else {
ioctl(launcher->tty, VT_RELDISP, VT_ACKACQ);
drmSetMaster(launcher->drm_fd);
- compositor->session_active = 1;
+ compositor->session_active = true;
wl_signal_emit(&compositor->session_signal, compositor);
}