mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-10 13:29:44 -05:00
wlr_scene: Consider screen position when culling background
This commit is contained in:
parent
fd0b0276c9
commit
35d94d779c
1 changed files with 1 additions and 0 deletions
|
|
@ -1517,6 +1517,7 @@ bool wlr_scene_output_commit(struct wlr_scene_output *scene_output) {
|
||||||
scene_node_opaque_region(node, x, y, &opaque);
|
scene_node_opaque_region(node, x, y, &opaque);
|
||||||
pixman_region32_intersect(&opaque, &opaque, &node->visible);
|
pixman_region32_intersect(&opaque, &opaque, &node->visible);
|
||||||
|
|
||||||
|
pixman_region32_translate(&opaque, -scene_output->x, -scene_output->y);
|
||||||
wlr_region_scale(&opaque, &opaque, scene_output->output->scale);
|
wlr_region_scale(&opaque, &opaque, scene_output->output->scale);
|
||||||
pixman_region32_subtract(&background, &background, &opaque);
|
pixman_region32_subtract(&background, &background, &opaque);
|
||||||
pixman_region32_fini(&opaque);
|
pixman_region32_fini(&opaque);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue