diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-24 19:32:46 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-24 19:32:46 +0200 |
commit | ad908f13951a80553ac6591cab8f32c7b2132589 (patch) | |
tree | 5bdbfab4ebe9cc0730312de577507971a122b3b8 /Servers/WindowServer/WSScreen.cpp | |
parent | 508007f1dd11de4f154788e1c85940f086390b70 (diff) | |
download | serenity-ad908f13951a80553ac6591cab8f32c7b2132589.zip |
WindowServer: Factor out compositing from WSWindowManager into WSCompositor.
This is far from finished and the two classes are awkwardly grabbing at each
other's innards, but here's a first step in the right direction.
Diffstat (limited to 'Servers/WindowServer/WSScreen.cpp')
-rw-r--r-- | Servers/WindowServer/WSScreen.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Servers/WindowServer/WSScreen.cpp b/Servers/WindowServer/WSScreen.cpp index 03ef728abb..bfb23e46fd 100644 --- a/Servers/WindowServer/WSScreen.cpp +++ b/Servers/WindowServer/WSScreen.cpp @@ -1,11 +1,12 @@ -#include "WSScreen.h" -#include "WSEventLoop.h" +#include "WSCompositor.h" #include "WSEvent.h" +#include "WSEventLoop.h" +#include "WSScreen.h" #include "WSWindowManager.h" -#include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/mman.h> +#include <unistd.h> static WSScreen* s_the; @@ -86,7 +87,7 @@ void WSScreen::on_receive_mouse_data(int dx, int dy, int dz, unsigned buttons) } if (m_cursor_location != prev_location) - WSWindowManager::the().invalidate_cursor(); + WSCompositor::the().invalidate_cursor(); } void WSScreen::on_receive_keyboard_data(KeyEvent kernel_event) |