[client] resources: clean up icon handling

This commit turns the icon handling into using a macro so we don't need to do
weird conversions from unsigned long (needed by X11) to uint32_t (needed by
Wayland).

Also simplified the error handling path on Wayland.
This commit is contained in:
Quantum
2026-07-17 20:55:57 -04:00
committed by Geoffrey McRae
parent 6a9957650c
commit 47aebcda0c
5 changed files with 529 additions and 586 deletions

View File

@@ -14,10 +14,6 @@ function(build_resources)
set(LG_RESOURCES_INCS "${LG_RESOURCES_INCS}" PARENT_SCOPE)
endfunction()
set(RESOURCES_SOURCES
icondata.c
)
build_resources(
lg-logo.svg
status/spice.svg
@@ -26,5 +22,5 @@ build_resources(
no-input-cursor/32.xcur
)
add_library(lg_resources STATIC ${RESOURCES_SOURCES} ${LG_RESOURCES_OBJS})
add_library(lg_resources STATIC ${LG_RESOURCES_OBJS})
set_target_properties(lg_resources PROPERTIES LINKER_LANGUAGE C)