1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:18:13 +00:00

WindowServer: Move occlusion things from WindowManager to Compositor

This commit is contained in:
Andreas Kling 2020-05-19 19:02:15 +02:00
parent db30a2549e
commit 10699b347f
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)