center child clients on parent in parent_set()

This commit is contained in:
Mike Blumenkrantz 2017-04-07 16:07:25 -04:00
parent bab204bde1
commit 53233ec53f
1 changed files with 2 additions and 0 deletions

View File

@ -5555,6 +5555,8 @@ e_client_parent_set(E_Client *ec, E_Client *parent)
{
evas_object_layer_set(ec->frame, ec->parent->layer);
evas_object_stack_above(ec->frame, parent->frame);
if (e_pixmap_usable_get(ec->pixmap) && (!ec->lock_user_location))
e_comp_object_util_center_on(ec->frame, parent->frame);
if ((e_config->focus_setting == E_FOCUS_NEW_DIALOG) ||
(ec->parent->focused && (e_config->focus_setting == E_FOCUS_NEW_DIALOG_IF_OWNER_FOCUSED)))