From ee373b570aff87a6ee0892da357c8b5e9652bec5 Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Wed, 7 Aug 2024 13:45:33 +0900 Subject: [PATCH] e_client: set move_after_resize flag only if the position is different Change-Id: Ica3c7151d96983019be4a2a38f551c9069f8e677 --- src/bin/core/e_client.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/bin/core/e_client.c b/src/bin/core/e_client.c index fceb24c..ac201f7 100644 --- a/src/bin/core/e_client.c +++ b/src/bin/core/e_client.c @@ -5921,8 +5921,11 @@ e_client_frame_geometry_set(E_Client *ec, int x, int y, int w, int h) { if ((ec->w != w) || (ec->h != h)) { - ELOGF("POSSIZE", "Set move_after_resize. old(%d,%d,%dx%d), new(%d,%d,%dx%d)", ec, ec->x, ec->y, ec->w, ec->h, x, y, w, h); - ec->move_after_resize = EINA_TRUE; + if ((ec->x != x) || (ec->y != y)) + { + ELOGF("POSSIZE", "Set move_after_resize. old(%d,%d,%dx%d), new(%d,%d,%dx%d)", ec, ec->x, ec->y, ec->w, ec->h, x, y, w, h); + ec->move_after_resize = EINA_TRUE; + } e_client_pos_set(ec, x, y); e_view_client_size_set(view_client, w, h); @@ -5965,8 +5968,11 @@ e_client_util_move_resize_without_frame(E_Client *ec, int x, int y, int w, int h { if ((ec->w != w) || (ec->h != h)) { - ELOGF("POSSIZE", "Set move_after_resize. old(%d,%d,%dx%d), new(%d,%d,%dx%d)", ec, ec->x, ec->y, ec->w, ec->h, x, y, w, h); - ec->move_after_resize = EINA_TRUE; + if ((ec->x != x) || (ec->y != y)) + { + ELOGF("POSSIZE", "Set move_after_resize. old(%d,%d,%dx%d), new(%d,%d,%dx%d)", ec, ec->x, ec->y, ec->w, ec->h, x, y, w, h); + ec->move_after_resize = EINA_TRUE; + } e_view_client_frame_xy_adjust(e_client_view_get(ec), x, y, &x, &y); e_client_pos_set(ec, x, y); -- 2.7.4