Merge branch 'wscons' into 'master'

Draft: Add OpenBSD/wscons support

See merge request wlroots/wlroots!5378
This commit is contained in:
illiliti 2026-06-13 10:25:16 +00:00
commit 90cf273319
24 changed files with 1531 additions and 179 deletions

View file

@ -6,6 +6,7 @@
#include <wayland-server-core.h>
struct libseat;
struct drm_event_monitor;
/**
* An opened physical device.
@ -45,9 +46,8 @@ struct wlr_session {
char seat[256];
struct udev *udev;
struct udev_monitor *mon;
struct wl_event_source *udev_event;
struct drm_event_monitor *drm_handle;
struct wl_event_source *drm_event;
struct libseat *seat_handle;
struct wl_event_source *libseat_event;

View file

@ -0,0 +1,23 @@
/*
* This an unstable interface of wlroots. No guarantees are made regarding the
* future consistency of this API.
*/
#ifndef WLR_USE_UNSTABLE
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
#endif
#ifndef WLR_BACKEND_WSCONS_H
#define WLR_BACKEND_WSCONS_H
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
struct wlr_input_device;
struct wlr_backend *wlr_wscons_backend_create(struct wlr_session *session);
bool wlr_backend_is_wscons(const struct wlr_backend *backend);
bool wlr_input_device_is_wscons(struct wlr_input_device *device);
#endif

View file

@ -15,6 +15,13 @@
* Required for <wlr/backend/libinput.h>.
*/
#mesondefine WLR_HAS_LIBINPUT_BACKEND
/**
* Whether the wscons backend is compile-time enabled. Equivalent to the
* pkg-config "have_wscons_backend" vartiable.
*
* Required for <wlr/backend/wscons.h>.
*/
#mesondefine WLR_HAS_WSCONS_BACKEND
/**
* Whether the X11 backend is compile-time enabled. Equivalent to the
* pkg-config "have_x11_backend" variable.