discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=1bc600bababf83aa187b4a859cdef3d67f7b24e7

commit 1bc600bababf83aa187b4a859cdef3d67f7b24e7
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Apr 7 16:07:25 2017 -0400

    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 f412dad..856866b 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)

-- 


Reply via email to