mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibGUI+WindowServer: Introduce new mouse tracking mechanism
This commit is contained in:
committed by
Andreas Kling
parent
bde3c7301e
commit
45126655cd
@@ -16,6 +16,7 @@
|
||||
#include <LibGUI/EmojiInputDialog.h>
|
||||
#include <LibGUI/Event.h>
|
||||
#include <LibGUI/Menu.h>
|
||||
#include <LibGUI/MouseTracker.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
@@ -370,6 +371,11 @@ void WindowServerConnection::display_link_notification()
|
||||
});
|
||||
}
|
||||
|
||||
void WindowServerConnection::track_mouse_move(Gfx::IntPoint const& mouse_position)
|
||||
{
|
||||
MouseTracker::track_mouse_move({}, mouse_position);
|
||||
}
|
||||
|
||||
void WindowServerConnection::ping()
|
||||
{
|
||||
async_pong();
|
||||
|
||||
Reference in New Issue
Block a user