mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
The surface's buffer dimensions were used to scale the clip's x/y offset. If a surface had a larger buffer than src_box, the calculations to scale the x/y portion of the clip would be incorrect, yielding graphical glitches. This was noticed with Chromium in sway, which during resize uses a viewport with a src_box to avoid immediate buffer reallocation. While the viewport was in use, the surface would be shifted so that too much content was cropped in the upper left, and damage glitching was visible in the lower right. Use the buffer source box dimensions instead. |
||
|---|---|---|
| .. | ||
| drag_icon.c | ||
| layer_shell_v1.c | ||
| output_layout.c | ||
| subsurface_tree.c | ||
| surface.c | ||
| wlr_scene.c | ||
| xdg_shell.c | ||