rem: aicon->wm_class, False));
add: aicon->wm_class, True));
context: ShowDockAppSettingsPanel(WAppIcon *aicon){    AppSettingsPanel *panel;    WScreen *scr = aicon->icon->core->screen_ptr;    Window parent;    WMFont *font;    int x, y;        panel = wmalloc(sizeof(AppSettingsPanel));    memset(panel, 0, sizeof(AppSettingsPanel));    panel->editedIcon = aicon;        aicon->panel = panel;    aicon->editing = 1;        panel->win = WMCreateWindow(scr->wmscreen, "applicationSettings");    WMResizeWidget(panel->win, PWIDTH, PHEIGHT);    panel->iconLabel = WMCreateLabel(panel->win);    WMResizeWidget(panel->iconLabel, 64, 64);    WMMoveWidget(panel->iconLabel, 10, 10);    WMSetLabelImagePosition(panel->iconLabel, WIPImageOnly);        panel->nameLabel = WMCreateLabel(panel->win);    WMResizeWidget(panel->nameLabel, 190, 18);    WMMoveWidget(panel->nameLabel, 80, 35);    WMSetLabelTextAlignment(panel->nameLabel, WALeft);    font = WMBoldSystemFontOfSize(scr->wmscreen, 14);    WMSetLabelFont(panel->nameLabel, font);    WMReleaseFont(font);    WMSetLabelText(panel->nameLabel, aicon->wm_class);    panel->autoLaunchBtn = WMCreateSwitchButton(panel->win);    WMResizeWidget(panel->autoLaunchBtn, PWIDTH-30, 20);    WMMoveWidget(panel->autoLaunchBtn, 15, 80);    WMSetButtonText(panel->autoLaunchBtn, 		    _("Start when WindowMaker is started"));    WMSetButtonSelected(panel->autoLaunchBtn, aicon->auto_launch);        panel->commandFrame = WMCreateFrame(panel->win);    WMResizeWidget(panel->commandFrame, 275, 50);    WMMoveWidget(panel->commandFrame, 10, 105);    WMSetFrameTitle(panel->commandFrame, _("Application path and arguments"));    panel->commandField = WMCreateTextField(panel->commandFrame);    WMResizeWidget(panel->commandField, 256, 20);    WMMoveWidget(panel->commandField, 10, 20);    WMSetTextFieldText(panel->commandField, aicon->command);        panel->dndCommandFrame = WMCreateFrame(panel->win);    WMResizeWidget(panel->dndCommandFrame, 275, 70);    WMMoveWidget(panel->dndCommandFrame, 10, 165);    WMSetFrameTitle(panel->dndCommandFrame, 		   _("Command for files dropped with DND"));        panel->dndCommandField = WMCreateTextField(panel->dndCommandFrame);    WMResizeWidget(panel->dndCommandField, 256, 20);    WMMoveWidget(panel->dndCommandField, 10, 20);        panel->dndCommandLabel = WMCreateLabel(panel->dndCommandFrame);    WMResizeWidget(panel->dndCommandLabel, 256, 18);    WMMoveWidget(panel->dndCommandLabel, 10, 45);#ifdef OFFIX_DND    WMSetTextFieldText(panel->dndCommandField, aicon->dnd_command);    WMSetLabelText(panel->dndCommandLabel, 		   _("%d will be replaced with the file name"));#else    WMSetTextFieldEnabled(panel->dndCommandField, False);    WMSetLabelText(panel->dndCommandLabel,		   _("DND support was not compiled in"));    #endif    panel->iconFrame = WMCreateFrame(panel->win);    WMResizeWidget(panel->iconFrame, 275, 50);    WMMoveWidget(panel->iconFrame, 10, 245);    WMSetFrameTitle(panel->iconFrame, _("Icon Image"));        panel->iconField = WMCreateTextField(panel->iconFrame);    WMResizeWidget(panel->iconField, 176, 20);    WMMoveWidget(panel->iconField, 10, 20);    WMSetTextFieldText(panel->iconField, 		       wDefaultGetIconFile(scr, aicon->wm_instance, 					   aicon->wm_class, False));        panel->browseBtn = WMCreateCommandButton(panel->iconFrame);    WMResizeWidget(panel->browseBtn, 70, 24);    WMMoveWidget(panel->browseBtn, 195, 18);    WMSetButtonText(panel->browseBtn, _("Browse..."));    WMSetButtonAction(panel->browseBtn, chooseIconCallback, panel);        panel->okBtn = WMCreateCommandButton(panel->win);    WMResizeWidget(panel->okBtn, 80, 26);    WMMoveWidget(panel->okBtn, 200, 308);    WMSetButtonText(panel->okBtn, _("OK"));    WMSetButtonAction(panel->okBtn, panelBtnCallback, panel);        panel->cancelBtn = WMCreateCommandButton(panel->win);    WMResizeWidget(panel->cancelBtn, 80, 26);    WMMoveWidget(panel->cancelBtn, 110, 308);    WMSetButtonText(panel->cancelBtn, _("Cancel"));    WMSetButtonAction(panel->cancelBtn, panelBtnCallback, panel);        WMRealizeWidget(panel->win);    WMMapSubwidgets(panel->win);    WMMapSubwidgets(panel->commandFrame);    WMMapSubwidgets(panel->dndCommandFrame);    WMMapSubwidgets(panel->iconFrame);    updateSettingsPanelIcon(panel);    parent = XCreateSimpleWindow(dpy, scr->root_win, 0, 0, PWIDTH, PHEIGHT,				 0, 0, 0);    XSelectInput(dpy, parent, KeyPressMask|KeyReleaseMask);    XReparentWindow(dpy, WMWidgetXID(panel->win), parent, 0, 0);        y = aicon->y_pos;    if (y < 0)	y = 0;    else if (y + PWIDTH > scr->scr_height)	y = scr->scr_height - PHEIGHT - 30;    if (aicon->dock && aicon->dock->type == WM_DOCK) {	if (aicon->dock->on_right_side)	    x = scr->scr_width/2;	else	    x = scr->scr_width/2 - PWIDTH;    } else {	x = (scr->scr_width - PWIDTH)/2;    }    panel->wwin = wManageInternalWindow(scr, parent, None, 					_("Docked Application Settings"),					x, y, PWIDTH, PHEIGHT);        panel->wwin->client_leader = WMWidgetXID(panel->win);    WMMapWidget(panel->win);        wWindowMap(panel->wwin);}