add: WMPostNotificationName(WMNChangedState, wwin, "maximize");
context: wUnmaximizeWindow(WWindow *wwin){    int restore_x, restore_y;    if (!wwin->flags.maximized)	return;        if (wwin->flags.shaded) {	wwin->flags.skip_next_animation = 1;	wUnshadeWindow(wwin);    }    restore_x = (wwin->flags.maximized & MAX_HORIZONTAL) ?        wwin->old_geometry.x : wwin->frame_x;    restore_y = (wwin->flags.maximized & MAX_VERTICAL) ?        wwin->old_geometry.y : wwin->frame_y;    wwin->flags.maximized = 0;    wWindowConfigure(wwin, restore_x, restore_y,		     wwin->old_geometry.width, wwin->old_geometry.height);#ifdef GNOME_STUFF    wGNOMEUpdateClientStateHint(wwin, False);#endif#ifdef KWM_HINTS    wKWMUpdateClientStateHint(wwin, KWMMaximizedFlag);    wKWMSendEventMessage(wwin, WKWMChangedClient);#endif    wSoundPlay(WSOUND_UNMAXIMIZE);}