discomfitor pushed a commit to branch master.

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

commit f7f0cc5b3e4046f6bab5c5db1ba27603ad8b478d
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Nov 10 11:55:10 2016 -0500

    only unset cur_mouse_action on client menu delete for the right action
    
    ref 50198ecdde7a9bc477537df6a8fafa60be2cfb51
    
    this still needs improving....
---
 src/bin/e_int_client_menu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_int_client_menu.c b/src/bin/e_int_client_menu.c
index d50ffe0..62b3f82 100644
--- a/src/bin/e_int_client_menu.c
+++ b/src/bin/e_int_client_menu.c
@@ -269,7 +269,8 @@ e_int_client_menu_del(E_Client *ec)
    if (!ec->border_menu) return;
    e_menu_post_deactivate_callback_set(ec->border_menu, NULL, NULL);
    E_FREE_FUNC(ec->border_menu, e_object_del);
-   ec->cur_mouse_action = NULL;
+   if (ec->cur_mouse_action && eina_streq(ec->cur_mouse_action->name, 
"window_menu"))
+     E_FREE_FUNC(ec->cur_mouse_action, e_object_unref);
 }
 
 static void

-- 


Reply via email to