1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:37:45 +00:00

LibGUI+WindowServer: Introduce new mouse tracking mechanism

This commit is contained in:
Ben Wiederhake 2021-09-07 21:04:35 +02:00 committed by Andreas Kling
parent bde3c7301e
commit 45126655cd
10 changed files with 94 additions and 3 deletions

View file

@ -38,6 +38,7 @@ public:
~ClientConnection() override;
bool is_unresponsive() const { return m_unresponsive; }
bool does_global_mouse_tracking() const { return m_does_global_mouse_tracking; }
static ClientConnection* from_client_id(int client_id);
static void for_each_client(Function<void(ClientConnection&)>);
@ -113,6 +114,7 @@ private:
virtual void invalidate_rect(i32, Vector<Gfx::IntRect> const&, bool) override;
virtual void did_finish_painting(i32, Vector<Gfx::IntRect> const&) override;
virtual void set_global_cursor_tracking(i32, bool) override;
virtual void set_global_mouse_tracking(bool) override;
virtual void set_window_opacity(i32, float) override;
virtual void set_window_backing_store(i32, i32, i32, IPC::File const&, i32, bool, Gfx::IntSize const&, bool) override;
virtual void set_window_has_alpha_channel(i32, bool) override;
@ -179,6 +181,7 @@ private:
bool m_has_display_link { false };
bool m_show_screen_number { false };
bool m_unresponsive { false };
bool m_does_global_mouse_tracking { false };
// Need this to get private client connection stuff
friend WMClientConnection;