X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=ioncore%2Fdetach.c;fp=ioncore%2Fdetach.c;h=e175759e7d231d0d1681da036f5280b7746ac594;hp=89187a4a4d321f4ad8ab3f64d1208c41e5dbc82a;hb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a;hpb=29aae1975d46f66b97a2b873f1875eded8c6fbc3 diff --git a/ioncore/detach.c b/ioncore/detach.c index 89187a4..e175759 100644 --- a/ioncore/detach.c +++ b/ioncore/detach.c @@ -1,7 +1,7 @@ /* * ion/ioncore/detach.c * - * Copyright (c) Tuomo Valkonen 1999-2008. + * Copyright (c) Tuomo Valkonen 1999-2009. * * See the included file LICENSE for details. */ @@ -222,7 +222,6 @@ bool ioncore_detach_extl(WRegion *reg, const char *how) void do_unsqueeze(WRegion *reg) { WSizeHints h; - WRegion *mgr=REGION_MANAGER(reg); if(OBJ_IS(reg, WScreen)) return; @@ -238,11 +237,6 @@ void do_unsqueeze(WRegion *reg) } ioncore_detach(reg, SETPARAM_SET); - - if(REGION_MANAGER(reg)==mgr) - return; - - do_unsqueeze(reg); } @@ -256,7 +250,7 @@ EXTL_EXPORT void ioncore_unsqueeze(WRegion *reg, bool override) { if(ioncore_g.unsqueeze_enabled || override) - do_unsqueeze(region_groupleader_of(reg)); + do_unsqueeze(reg); }