mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
WindowServer+LibGUI: Change cursor icon if DragEnter event was accepted
This commit is contained in:
parent
e5674d9666
commit
2e244fc85b
Notes:
sideshowbarker
2024-07-17 07:35:36 +09:00
Author: https://github.com/krkk
Commit: 2e244fc85b
Pull-request: https://github.com/SerenityOS/serenity/pull/14957
6 changed files with 30 additions and 7 deletions
|
@ -295,6 +295,7 @@ void Application::set_drag_hovered_widget_impl(Widget* widget, Gfx::IntPoint con
|
|||
m_drag_hovered_widget->dispatch_event(enter_event, m_drag_hovered_widget->window());
|
||||
if (enter_event.is_accepted())
|
||||
set_pending_drop_widget(m_drag_hovered_widget);
|
||||
ConnectionToWindowServer::the().async_set_accepts_drag(enter_event.is_accepted());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue