Fixed damage highlight not clearing correct framebuffer
This commit is contained in:
parent
57b2e2f90a
commit
74ee0b7d26
1 changed files with 3 additions and 3 deletions
|
@ -1789,15 +1789,15 @@ void output_render(struct sway_output *output, struct timespec *when,
|
||||||
pixman_region32_union_rect(damage, damage, 0, 0, width, height);
|
pixman_region32_union_rect(damage, damage, 0, 0, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool damage_not_empty = pixman_region32_not_empty(damage);
|
if (!pixman_region32_not_empty(damage)) {
|
||||||
|
|
||||||
if (!damage_not_empty) {
|
|
||||||
// Output isn't damaged but needs buffer swap
|
// Output isn't damaged but needs buffer swap
|
||||||
goto renderer_end;
|
goto renderer_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug.damage == DAMAGE_HIGHLIGHT) {
|
if (debug.damage == DAMAGE_HIGHLIGHT) {
|
||||||
|
fx_framebuffer_bind(&renderer->wlr_buffer);
|
||||||
fx_renderer_clear((float[]){1, 1, 0, 1});
|
fx_renderer_clear((float[]){1, 1, 0, 1});
|
||||||
|
fx_framebuffer_bind(&renderer->main_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (server.session_lock.locked) {
|
if (server.session_lock.locked) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue