X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fgroup-ws.c;h=4445c55c575a34df3427a09d1a9336b22631e577;hb=831140ef97f8ad74f97b65346da5c3b70924311b;hp=d122a6df411c53dc53c0d74be2a50ab50306bc63;hpb=df57861c962a50bfbf57f276d288395fe0c6a4b6;p=ion3.git diff --git a/ioncore/group-ws.c b/ioncore/group-ws.c index d122a6d..4445c55 100644 --- a/ioncore/group-ws.c +++ b/ioncore/group-ws.c @@ -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;