Commit graph

3 commits

Author SHA1 Message Date
tokyo4j
ea40122699 scaled-rect-buffer: add missing cairo_surface_flush() 2024-11-28 18:49:04 +09:00
tokyo4j
5f943293ac buffer: remove buffer->cairo
It's more common for cairo_t to have a temporary lifetime and it will
prevent accidentally reusing its previous state.
2024-11-28 09:18:02 +09:00
tokyo4j
12cae9c7ee Add scaled_rect_buffer
scaled_rect_buffer is an implementation of scaled_scene_buffer and shows
an auto-scaling bordered rectangle. This is intended for menu borders,
but can be also useful for other elements like window switcher items.

We will support rounded corners for scaled_rect_buffer in the future.
2024-11-25 19:41:07 +00:00