mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
WindowServer+LibGUI: Change cursor icon if DragEnter event was accepted
This commit is contained in:
parent
e5674d9666
commit
2e244fc85b
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