summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-01-21 15:35:05 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-02 13:36:14 -0500
commit9af96a4c23dedb74e191fc1caaa325250f424d24 (patch)
treedc80cd8ff43192b1972caa010f79581b6f4797bd
parent69ebda1df83e151c9d247bf3aef486aec2bef5bd (diff)
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
-rw-r--r--src/bin/e_comp_wl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index c48c6d355..9e9c1adbc 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)
1024 int x = 0, y = 0, w, h; 1024 int x = 0, y = 0, w, h;
1025 1025
1026 first = !e_pixmap_usable_get(ec->pixmap); 1026 first = !e_pixmap_usable_get(ec->pixmap);
1027#ifndef HAVE_WAYLAND_ONLY
1028 if (first && e_client_has_xwindow(ec))
1029 first = !e_pixmap_usable_get(e_comp_x_client_pixmap_get(ec));
1030#endif
1027 ignored = ec->ignored; 1031 ignored = ec->ignored;
1028 1032
1029 if (state->new_attach) 1033 if (state->new_attach)