1
Fork 0
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:
Karol Kosek 2022-06-20 11:56:18 +02:00 committed by Sam Atkins
parent e5674d9666
commit 2e244fc85b
6 changed files with 30 additions and 7 deletions

View file

@ -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());
}
}