WindowServer: Move occlusion things from WindowManager to Compositor

This commit is contained in:
Andreas Kling 2020-05-19 19:02:15 +02:00
commit 10699b347f
Notes: sideshowbarker 2024-07-19 06:20:56 +09:00
5 changed files with 81 additions and 78 deletions

View file

@ -27,6 +27,7 @@
#include <LibGfx/Bitmap.h>
#include <LibGfx/Font.h>
#include <LibGfx/StylePainter.h>
#include <WindowServer/Compositor.h>
#include <WindowServer/Event.h>
#include <WindowServer/Screen.h>
#include <WindowServer/WindowManager.h>
@ -56,7 +57,7 @@ void WindowSwitcher::set_visible(bool visible)
if (m_visible == visible)
return;
m_visible = visible;
WindowManager::the().recompute_occlusions();
Compositor::the().recompute_occlusions();
if (m_switcher_window)
m_switcher_window->set_visible(visible);
if (!m_visible)