瀏覽代碼

WindowServer: Reevaluate hover state after dismissing window switcher

This makes the cursor update properly if it was above the window
switcher while it was visible, and something underneath it wants to use
something other than the default arrow cursor.
Andreas Kling 3 年之前
父節點
當前提交
f7f6526082
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Userland/Services/WindowServer/Window.cpp

+ 2 - 0
Userland/Services/WindowServer/Window.cpp

@@ -616,6 +616,8 @@ void Window::set_visible(bool b)
         return;
     m_visible = b;
 
+    WindowManager::the().reevaluate_hover_state_for_window(this);
+
     if (!m_visible)
         WindowManager::the().check_hide_geometry_overlay(*this);
     Compositor::the().invalidate_occlusions();