discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=82afc08c3942e51a3e242f7d2656d6413131b5cb

commit 82afc08c3942e51a3e242f7d2656d6413131b5cb
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Aug 1 10:54:44 2016 -0400

    only check x11 configurerequest geometry changes when applicable
    
    in some cases during a frame recalc this could lead to window positioning
    being erroneously changed
    
    fix T4097
---
 src/bin/e_comp_x.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index e1ee1c7..497d760 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -1709,8 +1709,12 @@ _e_comp_x_configure_request(void *data  EINA_UNUSED, int 
type EINA_UNUSED, Ecore
    e_comp_object_frame_xy_adjust(ec->frame, x, y, &x, &y);
    e_comp_object_frame_wh_adjust(ec->frame, w, h, &w, &h);
 
-   move = (x != ec->x) || (y != ec->y);
-   resize = (w != ec->w) || (h != ec->h);
+   if ((ev->value_mask & ECORE_X_WINDOW_CONFIGURE_MASK_X) ||
+       (ev->value_mask & ECORE_X_WINDOW_CONFIGURE_MASK_Y))
+     move = (x != ec->x) || (y != ec->y);
+   if ((ev->value_mask & ECORE_X_WINDOW_CONFIGURE_MASK_W) ||
+       (ev->value_mask & ECORE_X_WINDOW_CONFIGURE_MASK_H))
+     resize = (w != ec->w) || (h != ec->h);
 
    if (move && (!ec->lock_client_location))
      {

-- 


Reply via email to