rem: PlaceIcon(scr, &x, &y);
add: PlaceIcon(scr, &x, &y, wGetHeadForWindow(wapp->main_window_desc));
context: makeAppIconFor(WApplication *wapp){    WScreen *scr = wapp->main_window_desc->screen_ptr;    if (wapp->app_icon)        return;    if (!WFLAGP(wapp->main_window_desc, no_appicon))        wapp->app_icon = wAppIconCreate(wapp->main_window_desc);    else        wapp->app_icon = NULL;    if (wapp->app_icon) {        WIcon *icon = wapp->app_icon->icon;        WDock *clip = scr->workspaces[scr->current_workspace]->clip;        int x=0, y=0;        wapp->app_icon->main_window = wapp->main_window;        if (clip && clip->attract_icons && wDockFindFreeSlot(clip, &x, &y)) {            wapp->app_icon->attracted = 1;	    if (!wapp->app_icon->icon->shadowed) {		wapp->app_icon->icon->shadowed = 1;		wapp->app_icon->icon->force_paint = 1;	    }            wDockAttachIcon(clip, wapp->app_icon, x, y);        } else {            PlaceIcon(scr, &x, &y);	    wAppIconMove(wapp->app_icon, x, y);        }        if (!clip || !wapp->app_icon->attracted || !clip->collapsed)	    XMapWindow(dpy, icon->core->window);        if (wPreferences.auto_arrange_icons && !wapp->app_icon->attracted)            wArrangeIcons(wapp->main_window_desc->screen_ptr, True);    }}