discomfitor pushed a commit to branch enlightenment-0.20.

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

commit 69ebda1df83e151c9d247bf3aef486aec2bef5bd
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Jan 21 14:43:52 2016 -0500

    allow instant client mouse actions to persist until mouse up
    
    if an action triggers on a window, the triggering mouse event should
    not be passed to the window. the only way to determine this is if the
    action object lives through the entire event
---
 src/bin/e_client.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index 9100f47..7235374 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -2859,11 +2859,7 @@ e_client_mouse_down(E_Client *ec, int button, Evas_Point 
*output, E_Binding_Even
         if (ec->cur_mouse_action)
           {
              did_act = EINA_TRUE;
-             if ((!ec->cur_mouse_action->func.end_mouse) &&
-                 (!ec->cur_mouse_action->func.end))
-               ec->cur_mouse_action = NULL;
-             if (ec->cur_mouse_action)
-               e_object_ref(E_OBJECT(ec->cur_mouse_action));
+             e_object_ref(E_OBJECT(ec->cur_mouse_action));
           }
      }
    if ((!did_act) || (((pfocus == e_client_focused_get()) || (ec == 
e_client_focused_get())) && (ec->layer >= player)))

-- 


Reply via email to