rem: L("got map request for %x\n", (unsigned)window);
add: printf("got map request for %x\n", (unsigned)window);
context: handleMapRequest(XEvent *ev){    WWindow *wwin;    WScreen *scr = NULL;    Window window = ev->xmaprequest.window;#ifdef DEBUG    L("got map request for %x\n", (unsigned)window);#endif    if ((wwin = wWindowFor(window))) {	if (wwin->flags.shaded) {	    wUnshadeWindow(wwin);	}	/* deiconify window */	if (wwin->flags.miniaturized) {	    wDeiconifyWindow(wwin);	} else if (wwin->flags.hidden) {            WApplication *wapp = wApplicationOf(wwin->main_window);            /* go to the last workspace that the user worked on the app */            if (wapp) {                wWorkspaceChange(wwin->screen_ptr, wapp->last_workspace);            }	    wUnhideApplication(wapp, False, False);	}	return;    }    scr = wScreenForRootWindow(ev->xmaprequest.parent);    wwin = wManageWindow(scr, window);    /*      * This is to let the Dock know that the application it launched     * has already been mapped (eg: it has finished launching).      * It is not necessary for normally docked apps, but is needed for     * apps that were forcedly docked (like with dockit).     */    if (scr->last_dock) {	if (wwin && wwin->main_window!=None && wwin->main_window!=window)	  wDockTrackWindowLaunch(scr->last_dock, wwin->main_window);	else	  wDockTrackWindowLaunch(scr->last_dock, window);    }    if (wwin) {	wClientSetState(wwin, NormalState, None);	if (wwin->flags.maximized) {	    wMaximizeWindow(wwin, wwin->flags.maximized);	}	if (wwin->flags.shaded) {	    wwin->flags.shaded = 0;	    wwin->flags.skip_next_animation = 1;	    wShadeWindow(wwin);	}	if (wwin->flags.miniaturized) {	    wwin->flags.miniaturized = 0;	    wwin->flags.skip_next_animation = 1;	    wIconifyWindow(wwin);	}	if (wwin->flags.hidden) {	    WApplication *wapp = wApplicationOf(wwin->main_window);	    wwin->flags.hidden = 0;	    wwin->flags.skip_next_animation = 1;	    if (wapp) {		wHideApplication(wapp);	    }	}    }}