/*
* ion/mod_sp/main.c
*
- * Copyright (c) Tuomo Valkonen 2004-2007.
+ * Copyright (c) Tuomo Valkonen 2004-2009.
*
* See the included file LICENSE for details.
*/
{
WRegion *reg;
WRegionAttachData data;
- WGroupAttachParams par;
+ WGroupAttachParams par=GROUPATTACHPARAMS_INIT;
WGroupWS *ws;
ws=create_groupws(parent, fp);
par.geom.y=(fp->g.h-par.geom.h)/2;
par.level_set=TRUE;
- par.level=STACKING_LEVEL_MODAL1;
+ par.level=STACKING_LEVEL_MODAL1+1;
par.bottom=TRUE;
static WRegion *create(WMPlex *mplex, int flags)
{
WRegion *sp;
- WMPlexAttachParams par;
-
+ WMPlexAttachParams par=MPLEXATTACHPARAMS_INIT;
+
par.flags=(flags
|MPLEX_ATTACH_UNNUMBERED
|MPLEX_ATTACH_SIZEPOLICY
int setpar=libtu_setparam_invert(libtu_string_to_setparam(how));
WMPlexIterTmp tmp;
WRegion *reg;
- bool found=FALSE;
+ bool found=FALSE, res=FALSE;
FOR_ALL_MANAGED_BY_MPLEX(mplex, reg, tmp){
if(is_scratchpad(reg)){
- mplex_set_hidden(mplex, reg, setpar);
+ res=!mplex_set_hidden(mplex, reg, setpar);
found=TRUE;
}
}
int sp=libtu_string_to_setparam(how);
if(sp==SETPARAM_SET || sp==SETPARAM_TOGGLE)
found=(create(mplex, 0)!=NULL);
+ res=found;
}
- return found;
+ return res;
}