/*
* ion/mod_statusbar/statusbar.c
*
- * Copyright (c) Tuomo Valkonen 1999-2007.
+ * Copyright (c) Tuomo Valkonen 1999-2008.
*
* See the included file LICENSE for details.
*/
region_add_bindmap((WRegion*)p, mod_statusbar_statusbar_bindmap);
- ((WRegion*)p)->flags|=REGION_SKIP_FOCUS;
-
LINK_ITEM(statusbars, p, sb_next, sb_prev);
return TRUE;
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);