From b837b76071e88227ddd95067dc4576e7f53ba4f7 Mon Sep 17 00:00:00 2001 From: Monsta Date: Sat, 1 Aug 2015 13:44:00 +0300 Subject: window menu: make minimize item insensitive when window should not be minimized (e.g. delete confirmation dialog, logout dialog...) --- src/core/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/window.c b/src/core/window.c index 9b2ad926..dea5fa47 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -6722,8 +6722,8 @@ meta_window_show_menu (MetaWindow *window, if (!window->has_maximize_func) insensitive |= META_MENU_OP_UNMAXIMIZE | META_MENU_OP_MAXIMIZE; - /*if (!window->has_minimize_func) - insensitive |= META_MENU_OP_MINIMIZE;*/ + if (!window->has_minimize_func) + insensitive |= META_MENU_OP_MINIMIZE; /*if (!window->has_close_func) insensitive |= META_MENU_OP_DELETE;*/ -- cgit v1.2.1