Commit c29545fa authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed refocusing windows when closing sub-patch (or abstraction) where an...

fixed refocusing windows when closing sub-patch (or abstraction) where an invised parent would become visible instead of focusing on the next visible window.
parent 4600e461
......@@ -3806,8 +3806,13 @@ static void canvas_find_again(t_canvas *x)
static void canvas_find_parent(t_canvas *x)
{
if (x->gl_owner)
canvas_vis(glist_getcanvas(x->gl_owner), 1);
if (x->gl_owner) {
t_glist *owner = x->gl_owner;
while (!glist_isvisible(owner) && owner->gl_owner)
owner = owner->gl_owner;
if (glist_isvisible(owner))
canvas_vis(owner, 1);
}
else {
sys_gui("menu_raise_console;\n");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment