set wayland new client focus based on accepts_focus and !override
seems to resolve some cases where focus is not applied to new clients
This commit is contained in:
parent
1313f64aa9
commit
09efa26653
|
@ -1155,7 +1155,10 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
|
|||
}
|
||||
|
||||
if (ec->new_client)
|
||||
ec->placed = placed;
|
||||
{
|
||||
ec->placed = placed;
|
||||
ec->want_focus = ec->icccm.accepts_focus && (!ec->override);
|
||||
}
|
||||
else if ((first) && (ec->placed) && (!ec->internal) && (!ec->override))
|
||||
{
|
||||
ec->x = ec->y = 0;
|
||||
|
|
Loading…
Reference in New Issue