mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
Only set bounds for the current monitor
This commit is contained in:
parent
21a57140b6
commit
2947757c89
1 changed files with 3 additions and 12 deletions
|
|
@ -1000,9 +1000,6 @@ void handle_new_output(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
output->server = server;
|
||||
wlr_damage_ring_init(&output->damage_ring);
|
||||
int width, height;
|
||||
wlr_output_transformed_resolution(output->wlr_output, &width, &height);
|
||||
wlr_damage_ring_set_bounds(&output->damage_ring, width, height);
|
||||
|
||||
wl_signal_add(&wlr_output->events.destroy, &output->destroy);
|
||||
output->destroy.notify = handle_destroy;
|
||||
|
|
@ -1028,15 +1025,9 @@ void handle_new_output(struct wl_listener *listener, void *data) {
|
|||
|
||||
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);
|
||||
}
|
||||
int width, height;
|
||||
wlr_output_transformed_resolution(output->wlr_output, &width, &height);
|
||||
wlr_damage_ring_set_bounds(&output->damage_ring, width, height);
|
||||
update_output_manager_config(server);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue