mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 18:10:24 +00:00
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.
This commit is contained in:
parent
6c64721955
commit
f7f6526082
Notes:
sideshowbarker
2024-07-18 01:30:23 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f7f6526082a
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue