summaryrefslogtreecommitdiff
path: root/libweston/launcher-logind.c
diff options
context:
space:
mode:
Diffstat (limited to 'libweston/launcher-logind.c')
-rw-r--r--libweston/launcher-logind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libweston/launcher-logind.c b/libweston/launcher-logind.c
index 3b0a10d8..9c10c097 100644
--- a/libweston/launcher-logind.c
+++ b/libweston/launcher-logind.c
@@ -272,7 +272,7 @@ launcher_logind_activate_vt(struct weston_launcher *launcher, int vt)
static void
launcher_logind_set_active(struct launcher_logind *wl, bool active)
{
- if (!wl->compositor->session_active == !active)
+ if (wl->compositor->session_active == active)
return;
wl->compositor->session_active = active;