1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

WindowServer: Port WindowServer to LibCore.

This was pretty straightforward thanks to the work I did separating out
LibCore from LibGUI already. :^)

- WSMessageLoop now inherits from CEventLoop.
- WSMessage now inherits from CEvent.
- WSMessageReceiver goes away.

Now there is only one event loop in Serenity. Very nice!
This commit is contained in:
Andreas Kling 2019-04-14 05:15:22 +02:00
parent 4132f645ee
commit de184d0999
20 changed files with 170 additions and 320 deletions

View file

@ -5,7 +5,7 @@
#include <AK/WeakPtr.h>
#include <AK/Function.h>
#include <SharedGraphics/GraphicsBitmap.h>
#include <WindowServer/WSMessageReceiver.h>
#include <LibCore/CObject.h>
#include <WindowServer/WSMessage.h>
class WSWindow;
@ -13,7 +13,7 @@ class WSMenu;
class WSMenuBar;
struct WSAPI_ServerMessage;
class WSClientConnection final : public WSMessageReceiver {
class WSClientConnection final : public CObject {
public:
explicit WSClientConnection(int fd);
virtual ~WSClientConnection() override;
@ -40,7 +40,7 @@ public:
void post_paint_request(const WSWindow&, const Rect&);
private:
virtual void on_message(const WSMessage&) override;
virtual void event(CEvent&) override;
void on_request(const WSAPIClientRequest&);
void handle_request(const WSAPICreateMenubarRequest&);