1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +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

@ -663,6 +663,11 @@ void ClientConnection::set_global_cursor_tracking(i32 window_id, bool enabled)
it->value->set_global_cursor_tracking_enabled(enabled);
}
void ClientConnection::set_global_mouse_tracking(bool enabled)
{
m_does_global_mouse_tracking = enabled;
}
void ClientConnection::set_window_cursor(i32 window_id, i32 cursor_type)
{
auto it = m_windows.find(window_id);