logoalt Hacker News

RattlesnakeJaketoday at 1:28 PM1 replyview on HN

Ooh - did this carry forward into Wayland?


Replies

dmdtoday at 1:34 PM

Kinda-not-really? Wayland has wl_region objects and wl_surface_set_input_region but wl_region only has axis-aligned rectangles. you'd end up approximating the circle (or whatever shape) as a union of horizontal rect slices, rather than a pixmap. you can't just hand over a pixmap mask, you have to decompose the shape into rects yourself.