Selaa lähdekoodia

WindowServer: Send all mouse events inside the menubar rect to the menubar.

Andreas Kling 6 vuotta sitten
vanhempi
commit
7def86c86d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      WindowServer/WSWindowManager.cpp

+ 1 - 1
WindowServer/WSWindowManager.cpp

@@ -482,7 +482,7 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event)
         window->on_message(*local_event);
     }
 
-    if (m_current_menubar && menubar_rect().contains(event.position())) {
+    if (menubar_rect().contains(event.position())) {
         handle_menubar_mouse_event(*m_current_menubar, event);
         return;
     }