discomfitor pushed a commit to branch enlightenment-0.21.

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

commit ba9c8ab2c15a2088dc977e6176c32bdaf92c70ad
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Jun 9 20:18:20 2017 -0400

    perform client raise before triggering move/resize BEGIN client hook
    
    hooks may further modify stacking, so ensure any changes are done before
    that point
---
 src/bin/e_client.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index 77f2e6b91..df582e458 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -778,6 +778,12 @@ _e_client_move_begin(E_Client *ec)
    if (!_e_client_action_input_win_new()) return 0;
    ec->moving = 1;
    ecmove = ec;
+   if (!ec->lock_user_stacking)
+     {
+        if (e_config->border_raise_on_mouse_action)
+          evas_object_raise(ec->frame);
+     }
+
    _e_client_hook_call(E_CLIENT_HOOK_MOVE_BEGIN, ec);
    if (!ec->moving)
      {
@@ -785,11 +791,6 @@ _e_client_move_begin(E_Client *ec)
         _e_client_action_input_win_del();
         return 0;
      }
-   if (!ec->lock_user_stacking)
-     {
-        if (e_config->border_raise_on_mouse_action)
-          evas_object_raise(ec->frame);
-     }
    return 1;
 }
 
@@ -4776,6 +4777,11 @@ e_client_resize_begin(E_Client *ec)
        (ec->fullscreen) || (ec->lock_user_size))
      goto error;
    if (!_e_client_action_input_win_new()) goto error;
+   if (!ec->lock_user_stacking)
+     {
+        if (e_config->border_raise_on_mouse_action)
+          evas_object_raise(ec->frame);
+     }
    ecresize = ec;
    _e_client_hook_call(E_CLIENT_HOOK_RESIZE_BEGIN, ec);
    if (!e_client_util_resizing_get(ec))
@@ -4784,11 +4790,6 @@ e_client_resize_begin(E_Client *ec)
         _e_client_action_input_win_del();
         return EINA_FALSE;
      }
-   if (!ec->lock_user_stacking)
-     {
-        if (e_config->border_raise_on_mouse_action)
-          evas_object_raise(ec->frame);
-     }
    return EINA_TRUE;
 error:
    ec->resize_mode = E_POINTER_RESIZE_NONE;

-- 


Reply via email to