From 1bc600bababf83aa187b4a859cdef3d67f7b24e7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 7 Apr 2017 16:07:25 -0400 Subject: [PATCH] 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 --- src/bin/e_client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index f412dadd2..856866b00 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -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)