rem: if (scr->window_menu && scr->window_menu->flags.mapped) wMenuUnmap(scr->window_menu);
add: if (scr->window_menu) { if (scr->window_menu->flags.mapped) wMenuUnmap(scr->window_menu);  if (scr->window_menu->entries[0]->clientdata) { WWindow *wwin = (WWindow*)scr->window_menu->entries[0]->clientdata;
context: CloseWindowMenu(WScreen *scr){    if (scr->window_menu && scr->window_menu->flags.mapped)      wMenuUnmap(scr->window_menu);}