X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=mod_statusbar%2Fstatusbar.c;h=06fa6973bc3a889df6f1c2c4ff61e0c62c7cf67c;hp=c43d2b0ef71594d6d5ccead046e28d88da9d6764;hb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a;hpb=799a98b5f970cc5b09cd572f293b6ab7ac6854fc diff --git a/mod_statusbar/statusbar.c b/mod_statusbar/statusbar.c index c43d2b0..06fa697 100644 --- a/mod_statusbar/statusbar.c +++ b/mod_statusbar/statusbar.c @@ -1,7 +1,7 @@ /* * ion/mod_statusbar/statusbar.c * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2009. * * See the included file LICENSE for details. */ @@ -635,7 +635,8 @@ bool statusbar_fitrep(WStatusBar *sb, WWindow *par, const WFitParams *fp) bool wchg=(REGION_GEOM(sb).w!=fp->g.w); bool hchg=(REGION_GEOM(sb).h!=fp->g.h); - window_do_fitrep(&(sb->wwin), par, &(fp->g)); + if(!window_fitrep(&(sb->wwin), par, fp)) + return FALSE; if(wchg || hchg){ statusbar_calculate_xs(sb);