diff options
author | Josef Gajdusek <atx@atx.name> | 2019-07-16 20:58:14 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-07-17 19:36:15 +0300 |
commit | ac87df23eab4f9b2ca16d47a4cbaeb63e32215cf (patch) | |
tree | 0942445e2aad0148e17ea85f92f4664a7ff4a04d /include/sway | |
parent | Make fullscreen check for fullscreen parents (diff) | |
download | sway-ac87df23eab4f9b2ca16d47a4cbaeb63e32215cf.tar.gz sway-ac87df23eab4f9b2ca16d47a4cbaeb63e32215cf.tar.zst sway-ac87df23eab4f9b2ca16d47a4cbaeb63e32215cf.zip |
Update output manager on layout change
The output manager config was not properly updated if the position
of the output got changed.
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/output.h | 2 | ||||
-rw-r--r-- | include/sway/server.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h index 3d430ea2..a5a2f29e 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -154,6 +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_layout_change(struct wl_listener *listener, void *data); | ||
158 | |||
157 | void handle_output_manager_apply(struct wl_listener *listener, void *data); | 159 | void handle_output_manager_apply(struct wl_listener *listener, void *data); |
158 | 160 | ||
159 | void handle_output_manager_test(struct wl_listener *listener, void *data); | 161 | void handle_output_manager_test(struct wl_listener *listener, void *data); |
diff --git a/include/sway/server.h b/include/sway/server.h index fd613bb6..21661685 100644 --- a/include/sway/server.h +++ b/include/sway/server.h | |||
@@ -34,6 +34,7 @@ struct sway_server { | |||
34 | struct sway_input_manager *input; | 34 | struct sway_input_manager *input; |
35 | 35 | ||
36 | struct wl_listener new_output; | 36 | struct wl_listener new_output; |
37 | struct wl_listener output_layout_change; | ||
37 | 38 | ||
38 | struct wlr_idle *idle; | 39 | struct wlr_idle *idle; |
39 | struct sway_idle_inhibit_manager_v1 *idle_inhibit_manager_v1; | 40 | struct sway_idle_inhibit_manager_v1 *idle_inhibit_manager_v1; |