summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-11-10 11:55:10 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:46:14 -0500
commit1c27386047d82726ccd2e8e4006a12e49e54268a (patch)
tree8a6d87c6fff114efe53491ab7cb5c0db28eb49d2
parent25ae14416cb7d1655f04b9dbd51c75e1c907e7e5 (diff)
only unset cur_mouse_action on client menu delete for the right action
ref 50198ecdde7a9bc477537df6a8fafa60be2cfb51 this still needs improving....
-rw-r--r--src/bin/e_int_client_menu.c3
1 files changed, 2 insertions, 1 deletions
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)
269 if (!ec->border_menu) return; 269 if (!ec->border_menu) return;
270 e_menu_post_deactivate_callback_set(ec->border_menu, NULL, NULL); 270 e_menu_post_deactivate_callback_set(ec->border_menu, NULL, NULL);
271 E_FREE_FUNC(ec->border_menu, e_object_del); 271 E_FREE_FUNC(ec->border_menu, e_object_del);
272 ec->cur_mouse_action = NULL; 272 if (ec->cur_mouse_action && eina_streq(ec->cur_mouse_action->name, "window_menu"))
273 E_FREE_FUNC(ec->cur_mouse_action, e_object_unref);
273} 274}
274 275
275static void 276static void