do not arbitrarily center "lost" child windows, center them on the parent

if the parent is also lost, it will eventually be rescued and thus all children
will also be saved

 #WeirdCommitLogs
This commit is contained in:
Mike Blumenkrantz 2017-04-07 16:07:25 -04:00
parent d4b8404073
commit 1bc600baba
1 changed files with 6 additions and 1 deletions

View File

@ -2432,7 +2432,12 @@ e_client_idler_before(void)
)
{
if (e_config->screen_limits != E_CLIENT_OFFSCREEN_LIMIT_ALLOW_FULL)
_e_client_move_lost_window_to_center(ec);
{
if (ec->parent)
e_comp_object_util_center_on(ec->frame, ec->parent->frame);
else
_e_client_move_lost_window_to_center(ec);
}
}
// handle window stack
if (!ec->stack.prev && ec->stack.next)