From fe2db7570ed3c0455f8d48a8a0f5528d2c767f84 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Tue, 13 Feb 2024 17:29:53 +0900 Subject: [PATCH] hide the menu window when clicked --- include/fluent_tray.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/fluent_tray.hpp b/include/fluent_tray.hpp index f1c2a61..5932681 100644 --- a/include/fluent_tray.hpp +++ b/include/fluent_tray.hpp @@ -1506,7 +1506,12 @@ namespace fluent_tray if(menu.is_toggleable()) { // Update the toggle menu for checkmark if(!InvalidateRect(menu.window_handle(), NULL, TRUE)) { - return false ; + return FALSE ; + } + } + else { + if(!self->hide_menu_window()) { + return FALSE ; } } return TRUE ;