forked from enlightenment/enlightenment
don't set focus attrs in wl surface commit for xwl clients
these should be getting set in other places...I think...
This commit is contained in:
parent
6ee841ecd5
commit
b80f0fce56
|
@ -1349,8 +1349,11 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
|
||||||
_e_comp_wl_surface_state_attach(ec, state);
|
_e_comp_wl_surface_state_attach(ec, state);
|
||||||
if (first && (!ec->comp_data->cursor))
|
if (first && (!ec->comp_data->cursor))
|
||||||
{
|
{
|
||||||
ec->take_focus = !starting || ec->internal_elm_win;
|
if (!e_client_has_xwindow(ec))
|
||||||
ec->want_focus = ec->override && !e_client_util_is_popup(ec) && !ec->parent;
|
{
|
||||||
|
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_client_util_is_popup(ec)))
|
if (ec->parent && (!ec->lock_user_location) && (!e_client_util_is_popup(ec)))
|
||||||
e_comp_object_util_center_on(ec->frame, ec->parent->frame);
|
e_comp_object_util_center_on(ec->frame, ec->parent->frame);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue