From f7f0cc5b3e4046f6bab5c5db1ba27603ad8b478d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 10 Nov 2016 11:55:10 -0500 Subject: [PATCH] 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 d50ffe099..62b3f820d 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