rem: if (aicon->docked && scr->dock && aicon->yindex==0)
add: if (aicon->docked && scr->dock && scr->dock==aicon->dock && aicon->yindex==0)
context: wAppIconPaint(WAppIcon *aicon){    WScreen *scr = aicon->icon->core->screen_ptr;    wIconPaint(aicon->icon);# ifdef WS_INDICATOR    if (aicon->docked && scr->dock && aicon->yindex==0)	updateDockNumbers(scr);# endif    if (scr->dock_dots && aicon->docked && !aicon->running	&& aicon->command!=NULL) {	XSetClipMask(dpy, scr->copy_gc, scr->dock_dots->mask);	XSetClipOrigin(dpy, scr->copy_gc, 0, 0);	XCopyArea(dpy, scr->dock_dots->image, aicon->icon->core->window,		  scr->copy_gc, 0, 0, scr->dock_dots->width,		  scr->dock_dots->height, 0, 0);    }#ifdef HIDDENDOT    {        WApplication *wapp;	wapp = wApplicationOf(aicon->main_window);	if (wapp && wapp->flags.hidden) {            XSetClipMask(dpy, scr->copy_gc, scr->dock_dots->mask);            XSetClipOrigin(dpy, scr->copy_gc, 0, 0);            XCopyArea(dpy, scr->dock_dots->image,                      aicon->icon->core->window,                      scr->copy_gc, 0, 0, 7,                      scr->dock_dots->height, 0, 0);        }    }#endif /* HIDDENDOT */#ifdef NEWAPPICON    if (!wPreferences.strict_ns && aicon->icon->owner!=NULL) {	int active=0;	if (aicon->main_window==None) {	    active = (aicon->icon->owner->flags.focused ? 1 : 0);	} else {	    WApplication *wapp;	    wapp = wApplicationOf(aicon->main_window);	    if (!wapp) {		active = aicon->icon->owner->flags.focused;		wwarning("error in wAppIconPaint(). Please report it");	    } else {		active = wapp->main_window_desc->flags.focused;		if (wapp->main_window_desc->flags.hidden		    || !wapp->main_window_desc->flags.mapped)		  active = -1;	    }	}	if (active>=0)	  drawCorner(aicon->icon, aicon->icon->owner, active);    }#endif /* NEWAPPICON */    if (aicon->omnipresent)        drawCorner(aicon->icon);    XSetClipMask(dpy, scr->copy_gc, None);    if (aicon->launching) {	XFillRectangle(dpy, aicon->icon->core->window, scr->stipple_gc,		       0, 0, wPreferences.icon_size, wPreferences.icon_size);    }}