From fabf2de023ec4ca10c9dc4c3c438e24243369062 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 21 Jan 2016 15:35:05 -0500 Subject: [PATCH] determine new_client state for xwayland clients using xwayland pixmap in the case where the xwayland pixmap has previously been marked as usable, the corresponding client is guaranteed to have gone through the new_client eval. allowing a second eval will result in wrong geometries being set for the window in some cases --- src/bin/e_comp_wl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index fc9446eb8..bb49c0739 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1024,6 +1024,10 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state) int x = 0, y = 0, w, h; first = !e_pixmap_usable_get(ec->pixmap); +#ifndef HAVE_WAYLAND_ONLY + if (first && e_client_has_xwindow(ec)) + first = !e_pixmap_usable_get(e_comp_x_client_pixmap_get(ec)); +#endif ignored = ec->ignored; if (state->new_attach)