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:
parent
d4b8404073
commit
1bc600baba
|
@ -2432,8 +2432,13 @@ e_client_idler_before(void)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (e_config->screen_limits != E_CLIENT_OFFSCREEN_LIMIT_ALLOW_FULL)
|
if (e_config->screen_limits != E_CLIENT_OFFSCREEN_LIMIT_ALLOW_FULL)
|
||||||
|
{
|
||||||
|
if (ec->parent)
|
||||||
|
e_comp_object_util_center_on(ec->frame, ec->parent->frame);
|
||||||
|
else
|
||||||
_e_client_move_lost_window_to_center(ec);
|
_e_client_move_lost_window_to_center(ec);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// handle window stack
|
// handle window stack
|
||||||
if (!ec->stack.prev && ec->stack.next)
|
if (!ec->stack.prev && ec->stack.next)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue