1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

LibGUI: Ignore drop events by default

Before this change, parent widgets such as Buttons or Labels
were stealing drop events their parents.

I noticed it during drag-n-dropping files into visualization widgets
in Sound Player (which takes practically the entire application size
and gave impression that drop events weren't supported in the app
at all).
This commit is contained in:
Karol Kosek 2021-07-12 13:25:52 +02:00 committed by Andreas Kling
parent d940f7ba4f
commit f99507bf02

View file

@ -554,6 +554,7 @@ void Widget::drag_leave_event(Event&)
void Widget::drop_event(DropEvent& event)
{
dbgln("{} {:p} DROP @ {}, '{}'", class_name(), this, event.position(), event.text());
event.ignore();
}
void Widget::theme_change_event(ThemeChangeEvent&)