wlroots-hyprland/include/backend/multi.h
nyorain 7b52388424 Rework session handling
Sessions can now be retrieved from a backend in a more general manner.
Multi-backend gets back its `session` field that contains the session
if one was created, removing the interfacing from multi backend with the
drm backend directly. This adds the possibility to use sessions even
without the drm backend.

It additionally fixes the bug that 2 session objects got created when
WLR_BACKENDS were set to "libinput,drm".

To allow vt switching without drm backend (and drm fd) on logind, start
listening to PropertiesChanged signals from dbus and parse the session
"Active" property when no master fd was created (this does not change
current drm backend behaviour in any way).
2018-09-24 23:35:09 +02:00

23 lines
426 B
C

#ifndef BACKEND_MULTI_H
#define BACKEND_MULTI_H
#include <wayland-util.h>
#include <wlr/backend/interface.h>
#include <wlr/backend/multi.h>
#include <wlr/backend/session.h>
struct wlr_multi_backend {
struct wlr_backend backend;
struct wlr_session *session;
struct wl_list backends;
struct wl_listener display_destroy;
struct {
struct wl_signal backend_add;
struct wl_signal backend_remove;
} events;
};
#endif