aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-26 21:09:56 +0200
committerSimon Ser <contact@emersion.fr>2020-08-26 22:56:54 +0200
commit330c50b48dfe987d7894f5a92c1b084b2cc8c712 (patch)
tree4e8f44747367ca19d3b29f4c42e83334c0265d45 /backend
parent297354f8477285231826f6441b943188ec7d7399 (diff)
session: Add missing init to direct-freebsd
bad1e9afa8ea ("session: Add libseat backend") introduced a change to to how session backends initialize, but failed to update the FreeBSD specific version of the direct backend accordingly. Closes: https://github.com/swaywm/wlroots/issues/2376
Diffstat (limited to 'backend')
-rw-r--r--backend/session/direct-freebsd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/session/direct-freebsd.c b/backend/session/direct-freebsd.c
index c6e1f720..e4b6c792 100644
--- a/backend/session/direct-freebsd.c
+++ b/backend/session/direct-freebsd.c
@@ -18,6 +18,7 @@
#include <wlr/util/log.h>
#include <xf86drm.h>
#include "backend/session/direct-ipc.h"
+#include "backend/session/session.h"
#include "util/signal.h"
const struct session_impl session_direct;
@@ -274,6 +275,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;
@@ -297,6 +299,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;
return &session->base;
error_ipc: