From f7f6526082a0a19b430ff9657b9abf2118a164b5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 4 Nov 2021 14:37:07 +0100 Subject: [PATCH] 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. --- Userland/Services/WindowServer/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp index 0b4e64efcd..59a9925b8a 100644 --- a/Userland/Services/WindowServer/Window.cpp +++ b/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();