forked from enlightenment/enlightenment
do not set E_Client->take_focus for popup wl clients
This commit is contained in:
parent
984a1facd9
commit
001085f349
|
@ -1351,7 +1351,7 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
|
|||
{
|
||||
if (!e_client_has_xwindow(ec))
|
||||
{
|
||||
ec->take_focus = !starting || ec->internal_elm_win;
|
||||
ec->take_focus = !e_client_util_is_popup(ec) && (!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_client_util_is_popup(ec)))
|
||||
e_comp_object_util_center_on(ec->frame, ec->parent->frame);
|
||||
|
|
Loading…
Reference in New Issue