mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
output: set damage ring bounds to pixel values
Fixes: https://github.com/swaywm/sway/issues/7254
This commit is contained in:
parent
34933bb843
commit
85005b52fe
1 changed files with 7 additions and 7 deletions
|
@ -840,8 +840,9 @@ static void handle_mode(struct wl_listener *listener, void *data) {
|
||||||
arrange_output(output);
|
arrange_output(output);
|
||||||
transaction_commit_dirty();
|
transaction_commit_dirty();
|
||||||
|
|
||||||
wlr_damage_ring_set_bounds(&output->damage_ring,
|
int width, height;
|
||||||
output->width, output->height);
|
wlr_output_transformed_resolution(output->wlr_output, &width, &height);
|
||||||
|
wlr_damage_ring_set_bounds(&output->damage_ring, width, height);
|
||||||
wlr_output_schedule_frame(output->wlr_output);
|
wlr_output_schedule_frame(output->wlr_output);
|
||||||
|
|
||||||
update_output_manager_config(output->server);
|
update_output_manager_config(output->server);
|
||||||
|
@ -872,11 +873,10 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
||||||
update_output_manager_config(output->server);
|
update_output_manager_config(output->server);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event->committed & (WLR_OUTPUT_STATE_MODE |
|
if (event->committed & (WLR_OUTPUT_STATE_MODE | WLR_OUTPUT_STATE_TRANSFORM)) {
|
||||||
WLR_OUTPUT_STATE_TRANSFORM |
|
int width, height;
|
||||||
WLR_OUTPUT_STATE_SCALE)) {
|
wlr_output_transformed_resolution(output->wlr_output, &width, &height);
|
||||||
wlr_damage_ring_set_bounds(&output->damage_ring,
|
wlr_damage_ring_set_bounds(&output->damage_ring, width, height);
|
||||||
output->width, output->height);
|
|
||||||
wlr_output_schedule_frame(output->wlr_output);
|
wlr_output_schedule_frame(output->wlr_output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue