Преглед на файлове

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

Andreas Kling преди 6 години
родител
ревизия
7def86c86d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
     }