simplify placed flag setting during wl surface commit

this should result in fewer cases of windows randomly warping around...

...

maybe
This commit is contained in:
Mike Blumenkrantz 2017-08-25 14:47:04 -04:00
parent 4cb05b4120
commit db264cca49
1 changed files with 4 additions and 2 deletions

View File

@ -1529,8 +1529,10 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
if ((!ec->comp_data->sub.data) && (!ec->comp_data->buffer_commit))
{
if ((!ec->internal_elm_win) && (!ec->maximized) && (!ec->fullscreen))
ec->placed = (!e_client_has_xwindow(ec)) && (ec->netwm.type != E_WINDOW_TYPE_NORMAL);
if (e_client_has_xwindow(ec))
ec->placed = 0;
else if (!ec->placed)
ec->placed = ec->netwm.type != E_WINDOW_TYPE_NORMAL;
ec->want_focus |= ec->icccm.accepts_focus && (!ec->override);
}
}