1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 09:07:35 +00:00

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.
This commit is contained in:
Andreas Kling 2019-05-24 19:32:46 +02:00
parent 508007f1dd
commit ad908f1395
11 changed files with 487 additions and 426 deletions

View file

@ -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)