X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=mod_sp%2Fmain.c;h=512f38a2d751747540103bcff225f554406053fc;hb=3102bb90c325d9b29ac304d8f3ea0a17df564fc8;hp=b187e99291d13d31c67319079f0cc2a2009016d1;hpb=dd31dc3ce15f1c3b1db2ac464f0c5ea04836911a;p=ion3.git diff --git a/mod_sp/main.c b/mod_sp/main.c index b187e99..512f38a 100644 --- a/mod_sp/main.c +++ b/mod_sp/main.c @@ -1,7 +1,7 @@ /* * ion/mod_sp/main.c * - * Copyright (c) Tuomo Valkonen 2004-2007. + * Copyright (c) Tuomo Valkonen 2004-2008. * * See the included file LICENSE for details. */ @@ -88,7 +88,7 @@ static WRegion *create_scratchws(WWindow *parent, const WFitParams *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; @@ -155,11 +155,11 @@ bool mod_sp_set_shown_on(WMPlex *mplex, const char *how) 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; } } @@ -168,9 +168,10 @@ bool mod_sp_set_shown_on(WMPlex *mplex, const char *how) 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; }