mirror of
https://github.com/swaywm/sway.git
synced 2026-04-24 06:46:22 -04:00
Re-add support for wlr_output's atomic API
This reverts commit724926ea6aand re-applies commit6e0565e9de. Outputs now need to be explicitly enabled when performing a modeset. We need to roll back wlr_output_attach_render when we decide not to render. See also: https://github.com/swaywm/wlroots/pull/1797 (wlroots PR) See also: https://github.com/swaywm/sway/pull/4355 (Original sway PR) See also: https://github.com/swaywm/sway/pull/4434 (Revert sway PR)
This commit is contained in:
parent
658b779662
commit
ef2332f7a6
2 changed files with 37 additions and 30 deletions
|
|
@ -560,8 +560,12 @@ int output_repaint_timer_handler(void *data) {
|
|||
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||
|
||||
output_render(output, &now, &damage);
|
||||
} else if (surface_needs_frame) {
|
||||
wlr_output_schedule_frame(output->wlr_output);
|
||||
} else {
|
||||
wlr_output_rollback(output->wlr_output);
|
||||
|
||||
if (surface_needs_frame) {
|
||||
wlr_output_schedule_frame(output->wlr_output);
|
||||
}
|
||||
}
|
||||
|
||||
pixman_region32_fini(&damage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue