center wl clients on their parent when doing first commit

this resolves some bizarro pointer warping
This commit is contained in:
Mike Blumenkrantz 2017-08-04 16:23:38 -04:00
parent 1814080164
commit b817db7f09
1 changed files with 2 additions and 0 deletions

View File

@ -1349,6 +1349,8 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
{
ec->take_focus = !starting || ec->internal_elm_win;
ec->want_focus = ec->override && !e_client_util_is_popup(ec) && !ec->parent;
if (ec->parent && (!ec->lock_user_location))
e_comp_object_util_center_on(ec->frame, ec->parent->frame);
}
}