]> git.mdlowis.com Git - proto/labwc.git/commit
ssd: guard against negative sizes
authortokyo4j <hrak1529@gmail.com>
Sun, 4 May 2025 13:33:12 +0000 (22:33 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Sun, 18 May 2025 21:51:42 +0000 (06:51 +0900)
commit93d77801c5d89f7ea58c7f816dd1292580f8e4f9
tree86490d70c7da8bffdd9f3bfb5678ad9f63f5b436
parentdefa1d1a989858cd9373b0a93940467794bfe757
ssd: guard against negative sizes

We always create a SSD for 0x0 window since decorations are usually
requested before a window is mapped. Thus the sizes of some buffers/rects
like edge shadows could be negative, which is asserted in wlroots 0.19.
src/ssd/ssd-border.c
src/ssd/ssd-part.c
src/ssd/ssd-shadow.c
src/ssd/ssd-titlebar.c