mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:37:45 +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:
parent
4132f645ee
commit
de184d0999
20 changed files with 170 additions and 320 deletions
|
@ -3,13 +3,13 @@
|
|||
#include <SharedGraphics/Rect.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <WindowServer/WSMessageReceiver.h>
|
||||
#include <LibCore/CObject.h>
|
||||
|
||||
class Painter;
|
||||
class WSKeyEvent;
|
||||
class WSWindow;
|
||||
|
||||
class WSWindowSwitcher : public WSMessageReceiver {
|
||||
class WSWindowSwitcher : public CObject {
|
||||
public:
|
||||
WSWindowSwitcher();
|
||||
virtual ~WSWindowSwitcher() override;
|
||||
|
@ -33,8 +33,6 @@ public:
|
|||
WSWindow* switcher_window() { return m_switcher_window.ptr(); }
|
||||
|
||||
private:
|
||||
virtual void on_message(const WSMessage&) override;
|
||||
|
||||
OwnPtr<WSWindow> m_switcher_window;
|
||||
Rect m_rect;
|
||||
bool m_visible { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue