mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	WindowServer: Allow the system menu to be open when a modal is shown
This commit is contained in:
		
							parent
							
								
									b9be57a9cd
								
							
						
					
					
						commit
						1032ae0140
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -151,8 +151,9 @@ void MenuManager::handle_mouse_event(MouseEvent& mouse_event) | |||
|     bool handled_menubar_event = false; | ||||
|     for_each_active_menubar_menu([&](Menu& menu) { | ||||
|         if (menu.rect_in_menubar().contains(mouse_event.position())) { | ||||
|             handle_menu_mouse_event(menu, mouse_event); | ||||
|             handled_menubar_event = !active_window || !active_window->is_modal(); | ||||
|             handled_menubar_event = &menu == m_system_menu || !active_window || !active_window->is_modal(); | ||||
|             if (handled_menubar_event) | ||||
|                 handle_menu_mouse_event(menu, mouse_event); | ||||
|             return IterationDecision::Break; | ||||
|         } | ||||
|         return IterationDecision::Continue; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 angel
						angel