summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSScreen.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-24 19:32:46 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-24 19:32:46 +0200
commitad908f13951a80553ac6591cab8f32c7b2132589 (patch)
tree5bdbfab4ebe9cc0730312de577507971a122b3b8 /Servers/WindowServer/WSScreen.cpp
parent508007f1dd11de4f154788e1c85940f086390b70 (diff)
downloadserenity-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.cpp9
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)