From 0cd6f4e43c355ef6b568c769a4ecb2983d5f3fa6 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 18 Jan 2010 16:48:00 +0100 Subject: Add a hook to unset the client in the open menu frame instead of closing it Also nukes menu_frame_hide_all_client() as it is now unused. --- openbox/client_menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbox/client_menu.c') diff --git a/openbox/client_menu.c b/openbox/client_menu.c index 18f847ed..e70e6c0f 100644 --- a/openbox/client_menu.c +++ b/openbox/client_menu.c @@ -118,7 +118,8 @@ static void client_menu_execute(ObMenuEntry *e, ObMenuFrame *f, gint x, y; gulong ignore_start; - g_assert(c); + if (!c) + return; if (!config_focus_under_mouse) ignore_start = event_start_ignore_all_enters(); -- cgit v1.2.3