mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-25 16:02:33 +01:00
wmaker: switch back icon name to the window name when needed
This patch is setting the icon name to the window name when _NET_WM_ICON_NAME is not provided by the app.
This commit is contained in:
committed by
Carlos R. Mafra
parent
6dc89b1522
commit
58faae8ff5
@@ -325,10 +325,12 @@ void wIconChangeTitle(WIcon *icon, WWindow *wwin)
|
|||||||
if (icon->icon_name != NULL)
|
if (icon->icon_name != NULL)
|
||||||
XFree(icon->icon_name);
|
XFree(icon->icon_name);
|
||||||
|
|
||||||
/* Set the new one, using two methods */
|
/* Set the new one, using two methods to identify
|
||||||
|
the icon name or switch back to window name */
|
||||||
icon->icon_name = wNETWMGetIconName(wwin->client_win);
|
icon->icon_name = wNETWMGetIconName(wwin->client_win);
|
||||||
if (!icon->icon_name)
|
if (!icon->icon_name)
|
||||||
wGetIconName(dpy, wwin->client_win, &icon->icon_name);
|
if (!wGetIconName(dpy, wwin->client_win, &icon->icon_name))
|
||||||
|
icon->icon_name = wNETWMGetWindowName(wwin->client_win);
|
||||||
}
|
}
|
||||||
|
|
||||||
RImage *wIconValidateIconSize(RImage *icon, int max_size)
|
RImage *wIconValidateIconSize(RImage *icon, int max_size)
|
||||||
|
|||||||
Reference in New Issue
Block a user