aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-01-27 18:39:29 +0100
committerFurkan Sahin <furkan-dev@proton.me>2020-01-27 18:39:29 +0100
commit921ec6fb87ccfdf0e9bb6bc58572db7c91596cce (patch)
treef79301865db7d1707fe58c57ceadf3715295acd3 /include
parenta6a226a31c33567c73b917a845da3987b5cc4772 (diff)
Add support for wlr-output-power-management-unstable-v1
Diffstat (limited to 'include')
-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;