rem: sl = scr->selected_windows;
add: if (scr->shortcutSelectedWindows[entry->order-WO_ENTRIES]) WMFreeBag(scr->shortcutSelectedWindows[entry->order-WO_ENTRIES]);
context: makeShortcutCommand(WMenu *menu, WMenuEntry *entry){    WWindow *wwin = (WWindow*)entry->clientdata;    WScreen *scr = wwin->screen_ptr;        scr->shortcutWindow[entry->order-WO_ENTRIES] = wwin;    list_free(scr->shortcutSelectedWindows[entry->order-WO_ENTRIES]);    scr->shortcutSelectedWindows[entry->order-WO_ENTRIES] = NULL;    if (wwin->flags.selected /* && scr->selected_windows */ ) {        LinkedList *sl;        sl = scr->selected_windows;        while (sl) {            scr->shortcutSelectedWindows[entry->order-WO_ENTRIES] = list_cons(sl->head,scr->shortcutSelectedWindows[entry->order-WO_ENTRIES]);            sl = sl->tail;        }    }    else {        scr->shortcutSelectedWindows[entry->order-WO_ENTRIES] = NULL;    }        wSelectWindow(wwin, !wwin->flags.selected);    XFlush(dpy);    wusleep(3000);    wSelectWindow(wwin, !wwin->flags.selected);    XFlush(dpy);}