diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-07-25 21:53:06 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-08-24 11:13:55 +0200 |
commit | bad1e9afa8ea7d8927c8b4df83d3f277379dd54e (patch) | |
tree | a5f655d5b3fa824e12a1429ec4c8e49ab53f2cc9 /backend/session/direct.c | |
parent | 9feeb2738dfc5a2b07a817938cef9d553d0a26ee (diff) |
session: Add libseat backend
Diffstat (limited to 'backend/session/direct.c')
-rw-r--r-- | backend/session/direct.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/session/direct.c b/backend/session/direct.c index 4ffd711d..f9041070 100644 --- a/backend/session/direct.c +++ b/backend/session/direct.c @@ -18,6 +18,7 @@ #include <wlr/backend/session/interface.h> #include <wlr/util/log.h> #include "backend/session/direct-ipc.h" +#include "backend/session/session.h" #include "util/signal.h" enum { DRM_MAJOR = 226 }; @@ -246,6 +247,7 @@ static struct wlr_session *direct_session_create(struct wl_display *disp) { return NULL; } + session_init(&session->base); session->sock = direct_ipc_init(&session->child); if (session->sock == -1) { goto error_session; @@ -267,6 +269,7 @@ static struct wlr_session *direct_session_create(struct wl_display *disp) { snprintf(session->base.seat, sizeof(session->base.seat), "%s", seat); session->base.impl = &session_direct; + session->base.active = true; wlr_log(WLR_INFO, "Successfully loaded direct session"); return &session->base; |