rem: handleMapNotify(event->xmap.window);
add: handleMapNotify(event);
context: DispatchEvent(XEvent *event){    if (deathHandler)	handleDeadProcess(NULL);        if (WProgramState==WSTATE_NEED_EXIT) {	WProgramState = WSTATE_EXITING;	/* received SIGTERM */	/* 	 * WMHandleEvent() can't be called from anything	 * executed inside here, or we can get in a infinite	 * recursive loop.	 */	Shutdown(WSExitMode);    } else if (WProgramState == WSTATE_NEED_RESTART) {	WProgramState = WSTATE_RESTARTING;	Shutdown(WSRestartPreparationMode);	/* received SIGHUP */	Restart(NULL);    }    /* for the case that all that is wanted to be dispatched is     * the stuff above */    if (!event)	return;        saveTimestamp(event);        switch (event->type) {     case MapRequest:	handleMapRequest(event);	break;     case KeyPress:	handleKeyPress(event);	break;     case MotionNotify:         handleMotionNotify(event);         break;     case ConfigureRequest:	handleConfigureRequest(event);	break;     case DestroyNotify:	handleDestroyNotify(event);	break;	     case MapNotify:	handleMapNotify(event->xmap.window);	break;	     case UnmapNotify:	handleUnmapNotify(event);	break;     case ButtonPress:	handleButtonPress(event);	break;	     case Expose:	handleExpose(event);	break;	     case PropertyNotify:	handlePropertyNotify(event);	break;     case EnterNotify:	handleEnterNotify(event);	break;     case LeaveNotify:        handleLeaveNotify(event);	break;     case ClientMessage:	handleClientMessage(event);	break;	     case ColormapNotify:	handleColormapNotify(event);	break;     case MappingNotify:	if (event->xmapping.request == MappingKeyboard 	    || event->xmapping.request == MappingModifier)	  XRefreshKeyboardMapping(&event->xmapping);	break;	     case FocusIn:	handleFocusIn(event);	break;     default:	handleExtensions(event);	break;    }}