From a5cab82a0f1a766e25a017036a8f7f39db0c889a Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 22 Jul 2018 16:22:34 +0100 Subject: [PATCH] rootston: fire up wlr-gamma-control-unstable-v1 --- include/rootston/desktop.h | 2 ++ rootston/desktop.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h index 51cf68db..363a16f0 100644 --- a/include/rootston/desktop.h +++ b/include/rootston/desktop.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -43,6 +44,7 @@ struct roots_desktop { struct wlr_xdg_shell_v6 *xdg_shell_v6; struct wlr_xdg_shell *xdg_shell; struct wlr_gamma_control_manager *gamma_control_manager; + struct wlr_gamma_control_manager_v1 *gamma_control_manager_v1; struct wlr_screenshooter *screenshooter; struct wlr_export_dmabuf_manager_v1 *export_dmabuf_manager_v1; struct wlr_server_decoration_manager *server_decoration_manager; diff --git a/rootston/desktop.c b/rootston/desktop.c index 786ac99e..658611e3 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -868,6 +869,8 @@ struct roots_desktop *desktop_create(struct roots_server *server, desktop->gamma_control_manager = wlr_gamma_control_manager_create( server->wl_display); + desktop->gamma_control_manager_v1 = wlr_gamma_control_manager_v1_create( + server->wl_display); desktop->screenshooter = wlr_screenshooter_create(server->wl_display); desktop->export_dmabuf_manager_v1 = wlr_export_dmabuf_manager_v1_create(server->wl_display);