rem: if (!dock->collapsed && dock->auto_collapse_magic!=NULL) { toggleCollapsed(dock);
add: if (dock->auto_collapse_magic) { dock->collapsed = 1; wDockHideIcons(dock);
context: clipAutoCollapse(void *cdata){    WDock *dock = (WDock *)cdata;    if (dock->type!=WM_CLIP || !dock->auto_collapse)        return;    if (!dock->collapsed && dock->auto_collapse_magic!=NULL) {        toggleCollapsed(dock);    }    dock->auto_collapse_magic = NULL;}