Skip to content

Commit

Permalink
set status
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Feb 13, 2024
1 parent 9c65d13 commit bf7f336
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/fluent_tray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,14 +937,17 @@ namespace fluent_tray
get_message(msg) ;

if(GetForegroundWindow() != hwnd_ && visible_) {
hide_menu_window() ;
if(!hide_menu_window()) {
status_ = TrayStatus::FAILED ;
}
}

for(std::size_t i = 0 ; i < menus_.size() ; i ++) {
auto& menu = menus_[i] ;
if(menu.is_mouse_over()) {
if(!mouse_is_over_[i]) {
if(!change_menu_back_color(menu, ash_color_)) {
status_ = TrayStatus::FAILED ;
return false ;
}
}
Expand All @@ -953,6 +956,7 @@ namespace fluent_tray
else {
if(mouse_is_over_[i]) {
if(!change_menu_back_color(menu, back_color_)) {
status_ = TrayStatus::FAILED ;
return false ;
}
}
Expand Down

0 comments on commit bf7f336

Please sign in to comment.