mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
session: Add missing init to direct-freebsd
bad1e9afa8
("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
This commit is contained in:
parent
297354f847
commit
330c50b48d
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
#include "backend/session/direct-ipc.h"
|
#include "backend/session/direct-ipc.h"
|
||||||
|
#include "backend/session/session.h"
|
||||||
#include "util/signal.h"
|
#include "util/signal.h"
|
||||||
|
|
||||||
const struct session_impl session_direct;
|
const struct session_impl session_direct;
|
||||||
|
@ -274,6 +275,7 @@ static struct wlr_session *direct_session_create(struct wl_display *disp) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
session_init(&session->base);
|
||||||
session->sock = direct_ipc_init(&session->child);
|
session->sock = direct_ipc_init(&session->child);
|
||||||
if (session->sock == -1) {
|
if (session->sock == -1) {
|
||||||
goto error_session;
|
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);
|
snprintf(session->base.seat, sizeof(session->base.seat), "%s", seat);
|
||||||
session->base.impl = &session_direct;
|
session->base.impl = &session_direct;
|
||||||
|
session->base.active = true;
|
||||||
return &session->base;
|
return &session->base;
|
||||||
|
|
||||||
error_ipc:
|
error_ipc:
|
||||||
|
|
Loading…
Reference in a new issue