mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:58:12 +00:00
LibGUI+WindowServer: Introduce new mouse tracking mechanism
This commit is contained in:
parent
bde3c7301e
commit
45126655cd
10 changed files with 94 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue