LibGUI: Add "drag enter" and "drag leave" events

These events allow widgets to react when a drag enters/leaves their
rectangle. The enter event carries position + mime type, while the
leave event has no information.
This commit is contained in:
Andreas Kling 2021-01-08 22:23:06 +01:00
commit 9acb72e804
Notes: sideshowbarker 2024-07-19 00:01:50 +09:00
7 changed files with 60 additions and 3 deletions

View file

@ -325,6 +325,7 @@ void WindowServerConnection::handle(const Messages::WindowClient::DragAccepted&)
void WindowServerConnection::handle(const Messages::WindowClient::DragCancelled&)
{
DragOperation::notify_cancelled({});
Application::the()->notify_drag_cancelled({});
}
void WindowServerConnection::handle(const Messages::WindowClient::WindowStateChanged& message)