mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-01 16:55:59 +01:00
63792b38e4
wl_display holds a lot more than wlr_session needs: wlr_session only needs to wait for a FD to become readable, but wl_display provides full access to the Wayland client and protocol objects. Switch to wl_event_loop to better reflect the above.
25 lines
658 B
C
25 lines
658 B
C
#ifndef BACKEND_DRM_MONITOR_H
|
|
#define BACKEND_DRM_MONITOR_H
|
|
|
|
#include <wlr/backend/drm.h>
|
|
|
|
/**
|
|
* Helper to create new DRM sub-backends on GPU hotplug.
|
|
*/
|
|
struct wlr_drm_backend_monitor {
|
|
struct wlr_backend *multi;
|
|
struct wlr_backend *primary_drm;
|
|
struct wlr_session *session;
|
|
struct wl_display *display;
|
|
|
|
struct wl_listener multi_destroy;
|
|
struct wl_listener primary_drm_destroy;
|
|
struct wl_listener session_destroy;
|
|
struct wl_listener session_add_drm_card;
|
|
};
|
|
|
|
struct wlr_drm_backend_monitor *drm_backend_monitor_create(
|
|
struct wlr_backend *multi, struct wlr_backend *primary_drm,
|
|
struct wlr_session *session, struct wl_display *display);
|
|
|
|
#endif
|