aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-01-27 18:39:29 +0100
committerDrew DeVault <sir@cmpwn.com>2020-02-26 16:26:13 +0100
commit5ed01c861a2e720d53b42f707872dbfb36b2fce7 (patch)
treef79301865db7d1707fe58c57ceadf3715295acd3 /include/sway
parente0f8235fbfd77d81eecb12295c89f5ad2758b68c (diff)
downloadsway-5ed01c861a2e720d53b42f707872dbfb36b2fce7.tar.xz
Add support for wlr-output-power-management-unstable-v1
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/output.h3
-rw-r--r--include/sway/server.h4
2 files changed, 7 insertions, 0 deletions
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 <wlr/types/wlr_data_device.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>
#include <wlr/types/wlr_presentation_time.h>
#include <wlr/types/wlr_relative_pointer_v1.h>
#include <wlr/types/wlr_server_decoration.h>
@@ -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;