mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-22 19:43:31 +01:00
Fix for ignore client supplied icon attributes
As mentioned on the WMaker user mailing list some time ago https://groups.google.com/g/wmaker-user/c/95M_pb_Qlbs/m/6qJLJSqoAwAJ The Ignore client supplied icon from the windows attributes is not working. That's especially visible with firefox and thunderbird when they are using NET_WM_ICON to push the embedded icon. That patch is making sure to ignore the embedded icon if the user defined one.
This commit is contained in:
committed by
Carlos R. Mafra
parent
4392fdc291
commit
a4a6e65ca9
@@ -1186,6 +1186,8 @@ static void create_appicon_from_dock(WWindow *wwin, WApplication *wapp, Window m
|
||||
|
||||
wapp->app_icon->running = 1;
|
||||
wapp->app_icon->icon->owner = mainw;
|
||||
|
||||
if (!WFLAGP(wwin, always_user_icon)) {
|
||||
if (mainw->wm_hints && (mainw->wm_hints->flags & IconWindowHint))
|
||||
wapp->app_icon->icon->icon_win = mainw->wm_hints->icon_window;
|
||||
|
||||
@@ -1195,6 +1197,7 @@ static void create_appicon_from_dock(WWindow *wwin, WApplication *wapp, Window m
|
||||
/* Paint it */
|
||||
wAppIconPaint(wapp->app_icon);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Add the appicon to the appiconlist */
|
||||
|
||||
@@ -454,8 +454,8 @@ void wClientCheckProperty(WWindow * wwin, XPropertyEvent * event)
|
||||
/* update icon */
|
||||
if ((wwin->wm_hints->flags & IconPixmapHint)
|
||||
|| (wwin->wm_hints->flags & IconWindowHint)) {
|
||||
if (!WFLAGP(wwin, always_user_icon)) {
|
||||
WApplication *wapp;
|
||||
|
||||
if (wwin->flags.miniaturized && wwin->icon)
|
||||
wIconUpdate(wwin->icon);
|
||||
|
||||
@@ -465,6 +465,7 @@ void wClientCheckProperty(WWindow * wwin, XPropertyEvent * event)
|
||||
wAppIconPaint(wapp->app_icon);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (wwin->wm_hints->flags & UrgencyHint)
|
||||
wwin->flags.urgent = 1;
|
||||
|
||||
Reference in New Issue
Block a user