mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Moved bounds logic into handle_new_output
This commit is contained in:
parent
3e19cb98b4
commit
21a57140b6
1 changed files with 9 additions and 3 deletions
|
|
@ -826,9 +826,6 @@ static void update_output_manager_config(struct sway_server *server) {
|
||||||
config_head->state.y = output_box.y;
|
config_head->state.y = output_box.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
int width, height;
|
|
||||||
wlr_output_transformed_resolution(output->wlr_output, &width, &height);
|
|
||||||
wlr_damage_ring_set_bounds(&output->damage_ring, width, height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wlr_output_manager_v1_set_configuration(server->output_manager_v1, config);
|
wlr_output_manager_v1_set_configuration(server->output_manager_v1, config);
|
||||||
|
|
@ -1031,6 +1028,15 @@ void handle_new_output(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
transaction_commit_dirty();
|
transaction_commit_dirty();
|
||||||
|
|
||||||
|
struct sway_output *tmp_output;
|
||||||
|
wl_list_for_each(tmp_output, &root->all_outputs, link) {
|
||||||
|
if (tmp_output == root->fallback_output) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
int width, height;
|
||||||
|
wlr_output_transformed_resolution(tmp_output->wlr_output, &width, &height);
|
||||||
|
wlr_damage_ring_set_bounds(&tmp_output->damage_ring, width, height);
|
||||||
|
}
|
||||||
update_output_manager_config(server);
|
update_output_manager_config(server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue