rem: if (!tmpw) {
add: if (curtop == NULL) {
context: AddToStackList(WCoreWindow *frame){    WCoreWindow *prev, *tmpw, *wlist;    int index = frame->stacking->window_level;    WScreen *scr = frame->screen_ptr;    frame->screen_ptr->window_count++;    XSaveContext(dpy, frame->window, wStackContext, (XPointer)frame);    tmpw = WMGetFromBag(scr->stacking_list, index);    if (!tmpw) {	WMSetInBag(scr->stacking_list, index, frame);	frame->stacking->above = NULL;	frame->stacking->under = NULL;	CommitStacking(scr);	return;    }    prev = tmpw;    /* check if this is a transient owner */#ifdef removed    if (wPreferences.on_top_transients)#endif    {	WCoreWindow *trans = NULL;	  	wlist = WMGetFromBag(scr->stacking_list, index);	while (wlist) {	    if (wlist->stacking->child_of == frame)	      trans = wlist;	    wlist = wlist->stacking->under;	}		frame->stacking->above = trans;	if (trans) {	    frame->stacking->under = trans->stacking->under;	    if (trans->stacking->under) {		trans->stacking->under->stacking->above = frame;	    }	    trans->stacking->under = frame;	} else {	    frame->stacking->under = tmpw;	    tmpw->stacking->above = frame;	    WMSetInBag(scr->stacking_list, index, frame);	    	}    }#ifdef removed    else {	/* put on top of the stacking list */	frame->stacking->above = NULL;	frame->stacking->under = tmpw;	tmpw->stacking->above = frame;	WMSetInBag(scr->stacking_list, index, frame);    }#endif    CommitStacking(scr);        }