Commit graph

12 commits

Author SHA1 Message Date
Jack Zeal
adc2c911ff Use rendered borders with Cairo overlay for desktop switching OSD 2026-03-27 23:11:40 -07:00
Jack Zeal
536847cb5b Use cache for title bar double beveled borders 2026-03-27 20:57:28 -07:00
Jack Zeal
2a0ff0d5b4 Initial use of a centralized caching border generator 2026-03-27 20:24:24 -07:00
Jack Zeal
c37f343377 Fix incorect border drawing and remove light borders as no longer needed 2026-03-27 19:13:11 -07:00
Jack Zeal
f7d2be37ea Clean up codesniffer issues 2026-03-26 21:50:55 -07:00
Jack Zeal
c2e251de98 Document why the different bevel models exist 2026-03-26 20:06:08 -07:00
Jack Zeal
25b5ad08e4 Handle the highlights on the window switcher with a different bevel that doesn't involve leaving crumbs 2026-03-26 19:35:38 -07:00
Jack Zeal
69e372cc5f Sharp borders and flag-controlled bevels for the menus/dialogues 2026-03-25 21:08:20 -07:00
Jack Zeal
ddd1ff5a6a Render beveled menus 2026-03-23 22:50:07 -07:00
John Lindgren
16c5373be5 tree-wide: use die_if_null() for wlr_scene alloc failures
Some checks failed
labwc.github.io / notify (push) Has been cancelled
wlr_scene_*_create() functions all allocate memory via calloc() and
return NULL if the allocation fails. Previously, the failures were
handled in any of 3 different ways:

 - sending a wayland protocol error
 - exiting labwc with an error
 - segfault (no NULL check at all)

Since labwc does not attempt to survive heap exhaustion in other
allocation paths (such as `znew`), it seems more consistent to use the
same die_if_null() check used in those paths to exit with an error.

For the three most common create() functions (tree, rect, buffer),
add small lab_wlr_ wrappers to common/scene-helpers.
2026-03-15 21:26:37 +00:00
John Lindgren
31d42b50e2 src: include primary header first
This is a common practice in C projects, which simply enforces that
each header must compile cleanly without implicit dependencies on
other headers (see also the previous commit).
2025-07-29 21:51:56 +01:00
tokyo4j
ffd400503e Replace multi_rect with lab_scene_rect
lab_scene_rect accepts the arbitrary number of borders and a background
color.
2025-06-10 06:03:03 +09:00