aboutsummaryrefslogtreecommitdiffstats
path: root/sway/server.c
diff options
context:
space:
mode:
authorLibravatar Josef Gajdusek <atx@atx.name>2019-07-16 20:58:14 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2019-07-17 19:36:15 +0300
commitac87df23eab4f9b2ca16d47a4cbaeb63e32215cf (patch)
tree0942445e2aad0148e17ea85f92f4664a7ff4a04d /sway/server.c
parentMake fullscreen check for fullscreen parents (diff)
downloadsway-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/server.c')
-rw-r--r--sway/server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c
index b50e3ccc..4f46a065 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -66,6 +66,9 @@ bool server_init(struct sway_server *server) {
66 66
67 server->new_output.notify = handle_new_output; 67 server->new_output.notify = handle_new_output;
68 wl_signal_add(&server->backend->events.new_output, &server->new_output); 68 wl_signal_add(&server->backend->events.new_output, &server->new_output);
69 server->output_layout_change.notify = handle_output_layout_change;
70 wl_signal_add(&root->output_layout->events.change,
71 &server->output_layout_change);
69 72
70 wlr_xdg_output_manager_v1_create(server->wl_display, root->output_layout); 73 wlr_xdg_output_manager_v1_create(server->wl_display, root->output_layout);
71 74