Update output manager on layout change

The output manager config was not properly updated if the position
of the output got changed.
This commit is contained in:
Josef Gajdusek 2019-07-16 20:58:14 +02:00 committed by Simon Ser
parent 9af0b4d2ea
commit ac87df23ea
4 changed files with 13 additions and 0 deletions

View file

@ -66,6 +66,9 @@ bool server_init(struct sway_server *server) {
server->new_output.notify = handle_new_output;
wl_signal_add(&server->backend->events.new_output, &server->new_output);
server->output_layout_change.notify = handle_output_layout_change;
wl_signal_add(&root->output_layout->events.change,
&server->output_layout_change);
wlr_xdg_output_manager_v1_create(server->wl_display, root->output_layout);