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 /sway/desktop/output.c | |
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 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index fe50759a..22ced14e 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -688,6 +688,13 @@ void handle_new_output(struct wl_listener *listener, void *data) { | |||
688 | update_output_manager_config(server); | 688 | update_output_manager_config(server); |
689 | } | 689 | } |
690 | 690 | ||
691 | void handle_output_layout_change(struct wl_listener *listener, | ||
692 | void *data) { | ||
693 | struct sway_server *server = | ||
694 | wl_container_of(listener, server, output_layout_change); | ||
695 | update_output_manager_config(server); | ||
696 | } | ||
697 | |||
691 | void handle_output_manager_apply(struct wl_listener *listener, void *data) { | 698 | void handle_output_manager_apply(struct wl_listener *listener, void *data) { |
692 | struct sway_server *server = | 699 | struct sway_server *server = |
693 | wl_container_of(listener, server, output_manager_apply); | 700 | wl_container_of(listener, server, output_manager_apply); |