1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

LibGUI+WindowServer: Expose WindowServer client id to the client

This allows an WindowServer client to identify itself and allow future
cross-client functionality in WindowServer.
This commit is contained in:
Timothy 2021-07-13 00:25:47 +10:00 committed by Andreas Kling
parent 7791f7b9e6
commit 522f6775a7
4 changed files with 7 additions and 4 deletions

View file

@ -19,11 +19,12 @@ class WindowServerConnection final
C_OBJECT(WindowServerConnection)
public:
static WindowServerConnection& the();
i32 expose_client_id() { return m_client_id; }
private:
WindowServerConnection();
virtual void fast_greet(Vector<Gfx::IntRect> const&, u32, u32, u32, Core::AnonymousBuffer const&, String const&, String const&) override;
virtual void fast_greet(Vector<Gfx::IntRect> const&, u32, u32, u32, Core::AnonymousBuffer const&, String const&, String const&, i32) override;
virtual void paint(i32, Gfx::IntSize const&, Vector<Gfx::IntRect> const&) override;
virtual void mouse_move(i32, Gfx::IntPoint const&, u32, u32, u32, i32, bool, Vector<String> const&) override;
virtual void mouse_down(i32, Gfx::IntPoint const&, u32, u32, u32, i32) override;
@ -56,6 +57,7 @@ private:
virtual void ping() override;
bool m_display_link_notification_pending { false };
i32 m_client_id;
};
}