only unset cur_mouse_action on client menu delete for the right action

ref 50198ecdde

this still needs improving....
This commit is contained in:
Mike Blumenkrantz 2016-11-10 11:55:10 -05:00
parent 7d29dbf4ec
commit f7f0cc5b3e
1 changed files with 2 additions and 1 deletions

View File

@ -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