1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-04-09 17:33:32 +02:00

wmaker: add window app icon to the window list

This patch is adding the app icon in between the flags icon and
the window name from the window list.
Feature request from https://github.com/window-maker/wmaker/issues/19
It is disabled by default, it needs WindowListAppIcons to be
set to YES manually in the conf file or "Show app icons in window list."
enabled from WPrefs expert panel.
This commit is contained in:
David Maciejak
2026-02-09 18:14:01 -05:00
committed by Carlos R. Mafra
parent ae6b03e50f
commit 2901b418ad
7 changed files with 89 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ typedef struct WMenuEntry {
int order;
char *text; /* entry text */
char *rtext; /* text to show in the right part */
struct WPixmap *icon; /* optional icon displayed before the text */
void (*callback)(struct WMenu *menu, struct WMenuEntry *entry);
void (*free_cdata)(void *data); /* proc to be used to free clientdata */
void *clientdata; /* data to pass to callback */