X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fgroup-ws.c;h=4445c55c575a34df3427a09d1a9336b22631e577;hb=2948134dc6273f6d3ea089c4cc273b69e2f8d51e;hp=c12d8ec905242c2f2af097fe0b25c71d5c1de801;hpb=f869221ce49f0fb7cca48eee28daff8684305963;p=ion3.git diff --git a/ioncore/group-ws.c b/ioncore/group-ws.c index c12d8ec..4445c55 100644 --- a/ioncore/group-ws.c +++ b/ioncore/group-ws.c @@ -1,7 +1,7 @@ /* * ion/ioncore/group-ws.c * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2008. * * See the included file LICENSE for details. */ @@ -285,10 +285,8 @@ static bool group_empty_for_bottom_stdisp(WGroup *ws) static WRegion *groupws_managed_disposeroot(WGroupWS *ws, WRegion *reg) { if(group_bottom(&ws->grp)==reg){ - if(group_empty_for_bottom_stdisp(&ws->grp)){ - WRegion *tmpr=region_disposeroot((WRegion*)ws); - return (tmpr!=NULL ? tmpr : reg); - } + if(group_empty_for_bottom_stdisp(&ws->grp)) + return region_disposeroot((WRegion*)ws); } return reg;