From 5ed01c861a2e720d53b42f707872dbfb36b2fce7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 27 Jan 2020 18:39:29 +0100 Subject: Add support for wlr-output-power-management-unstable-v1 --- include/sway/output.h | 3 +++ include/sway/server.h | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'include/sway') diff --git a/include/sway/output.h b/include/sway/output.h index 01c32e0b..9117f350 100644 --- a/include/sway/output.h +++ b/include/sway/output.h @@ -171,4 +171,7 @@ void handle_output_manager_apply(struct wl_listener *listener, void *data); void handle_output_manager_test(struct wl_listener *listener, void *data); +void handle_output_power_manager_set_mode(struct wl_listener *listener, + void *data); + #endif diff --git a/include/sway/server.h b/include/sway/server.h index 2e8e4633..65bd6429 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -73,6 +74,9 @@ struct sway_server { struct wl_listener output_manager_apply; struct wl_listener output_manager_test; + struct wlr_output_power_manager_v1 *output_power_manager_v1; + struct wl_listener output_power_manager_set_mode; + size_t txn_timeout_ms; list_t *transactions; list_t *dirty_nodes; -- cgit v1.2.3-54-g00ecf