Implement DRM leasing for non-desktop outputs

This prevents sway from extending the desktop to i.e. VR headsets, and
makes them available for DRM leasing.
This commit is contained in:
Drew DeVault 2019-06-27 13:55:34 -04:00
parent a8a6ed667d
commit 23de56175c
3 changed files with 34 additions and 1 deletions

View file

@ -8,6 +8,7 @@
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_input_method_v2.h>
#include <wlr/types/wlr_drm_lease_v1.h>
#include <wlr/types/wlr_layer_shell_v1.h>
#include <wlr/types/wlr_output_management_v1.h>
#include <wlr/types/wlr_output_power_management_v1.h>
@ -69,6 +70,9 @@ struct sway_server {
struct wl_listener xdg_decoration;
struct wl_list xdg_decorations; // sway_xdg_decoration::link
struct wlr_drm_lease_manager_v1 *drm_lease_manager;
struct wl_listener drm_lease_requested;
struct wlr_presentation *presentation;
struct wlr_pointer_constraints_v1 *pointer_constraints;