diff options
author | Josef Gajdusek <atx@atx.name> | 2019-05-20 23:47:05 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-05-24 18:59:14 +0300 |
commit | b3a5effef2be30c21d5a5cd7e60c9134af4948eb (patch) | |
tree | 22fd37fe1a67150f4978a3e8f1d21614655039c8 /include | |
parent | commands/bar: fix mode and hidden_state at runtime (diff) | |
download | sway-b3a5effef2be30c21d5a5cd7e60c9134af4948eb.tar.gz sway-b3a5effef2be30c21d5a5cd7e60c9134af4948eb.tar.zst sway-b3a5effef2be30c21d5a5cd7e60c9134af4948eb.zip |
Implement wlr-output-management-v1
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/output.h | 4 | ||||
-rw-r--r-- | include/sway/server.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h index d4438c0e..3d430ea2 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -154,4 +154,8 @@ void scale_box(struct wlr_box *box, float scale); | |||
154 | 154 | ||
155 | enum wlr_direction opposite_direction(enum wlr_direction d); | 155 | enum wlr_direction opposite_direction(enum wlr_direction d); |
156 | 156 | ||
157 | void handle_output_manager_apply(struct wl_listener *listener, void *data); | ||
158 | |||
159 | void handle_output_manager_test(struct wl_listener *listener, void *data); | ||
160 | |||
157 | #endif | 161 | #endif |
diff --git a/include/sway/server.h b/include/sway/server.h index 39cf4f18..fd613bb6 100644 --- a/include/sway/server.h +++ b/include/sway/server.h | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <wlr/types/wlr_compositor.h> | 8 | #include <wlr/types/wlr_compositor.h> |
9 | #include <wlr/types/wlr_data_device.h> | 9 | #include <wlr/types/wlr_data_device.h> |
10 | #include <wlr/types/wlr_layer_shell_v1.h> | 10 | #include <wlr/types/wlr_layer_shell_v1.h> |
11 | #include <wlr/types/wlr_output_management_v1.h> | ||
11 | #include <wlr/types/wlr_presentation_time.h> | 12 | #include <wlr/types/wlr_presentation_time.h> |
12 | #include <wlr/types/wlr_relative_pointer_v1.h> | 13 | #include <wlr/types/wlr_relative_pointer_v1.h> |
13 | #include <wlr/types/wlr_server_decoration.h> | 14 | #include <wlr/types/wlr_server_decoration.h> |
@@ -67,6 +68,10 @@ struct sway_server { | |||
67 | struct wlr_pointer_constraints_v1 *pointer_constraints; | 68 | struct wlr_pointer_constraints_v1 *pointer_constraints; |
68 | struct wl_listener pointer_constraint; | 69 | struct wl_listener pointer_constraint; |
69 | 70 | ||
71 | struct wlr_output_manager_v1 *output_manager_v1; | ||
72 | struct wl_listener output_manager_apply; | ||
73 | struct wl_listener output_manager_test; | ||
74 | |||
70 | size_t txn_timeout_ms; | 75 | size_t txn_timeout_ms; |
71 | list_t *transactions; | 76 | list_t *transactions; |
72 | list_t *dirty_nodes; | 77 | list_t *dirty_nodes; |