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

@ -688,6 +688,13 @@ void handle_new_output(struct wl_listener *listener, void *data) {
update_output_manager_config(server);
}
void handle_output_layout_change(struct wl_listener *listener,
void *data) {
struct sway_server *server =
wl_container_of(listener, server, output_layout_change);
update_output_manager_config(server);
}
void handle_output_manager_apply(struct wl_listener *listener, void *data) {
struct sway_server *server =
wl_container_of(listener, server, output_manager_apply);