mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-07-10 00:06:08 -04:00
A node can have a visible area outside the output layout bounds.
In that case, it will not pass the overlap check. For instance,
with a single output, a 100x100 px weston-simple-shm would stop
animating when moving it close to an edge and leaving less than a
~30x30 px square visible.
Fix this by intersecting the node's visible region with the output
layout region so that the 10% overlap target is always reachable.
Switch to a strict comparison in case visible_area is zero.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| drag_icon.c | ||
| layer_shell_v1.c | ||
| output_layout.c | ||
| subsurface_tree.c | ||
| surface.c | ||
| wlr_scene.c | ||
| xdg_shell.c | ||