Explorar el Código

WindowServer: Don't show system menu on Logo KeyUp during move/resize

Andreas Kling hace 5 años
padre
commit
ef05bb61a0
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      Servers/WindowServer/WSWindowManager.cpp

+ 5 - 1
Servers/WindowServer/WSWindowManager.cpp

@@ -940,7 +940,11 @@ void WSWindowManager::event(CEvent& event)
             return;
             return;
         }
         }
 
 
-        if (key_event.type() == WSEvent::KeyUp && key_event.key() == Key_Logo && !m_switcher.is_visible()) {
+        if (key_event.type() == WSEvent::KeyUp
+            && key_event.key() == Key_Logo
+            && !m_switcher.is_visible()
+            && !m_move_window
+            && !m_resize_window) {
             WSMenuManager::the().open_menu(WSMenuManager::the().system_menu());
             WSMenuManager::the().open_menu(WSMenuManager::the().system_menu());
             return;
             return;
         }
         }