]> git.mdlowis.com Git - proto/labwc.git/commit
ssd-titlebar: show fallback icon when no app_id is set
authortokyo4j <hrak1529@gmail.com>
Sun, 23 Feb 2025 17:22:30 +0000 (02:22 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 23 Feb 2025 21:56:03 +0000 (22:56 +0100)
commit392db7c04dd30d7137b3c22f32021bcd1baeb984
tree829cfd4ad364c54e290512ed204fcc8989eca1b2
parentc1a27b139c471ba5739cf4004a1e1641fabf2120
ssd-titlebar: show fallback icon when no app_id is set

Before this commit, nothing was rendered in window icon button if the
application doesn't set its app_id (e.g. nested kwin_wayland). This was my
oversight in dc474521.

This commit makes sure fallback icon (set via <theme><fallbackAppIcon>)
by removing ssd->state.app_id and the early-return in
ssd_update_window_icon(). This doesn't affect performance because
scaled_icon_buffer caches app_id and scaled_icon_buffer_set_app_id() does
nothing when a duplicated app_id is passed.
include/ssd-internal.h
src/ssd/ssd-titlebar.c