1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:37:44 +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

@ -96,6 +96,8 @@ public:
void start_dnd_drag(ConnectionFromClient&, String const& text, Gfx::Bitmap const*, Core::MimeData const&);
void end_dnd_drag();
void set_accepts_drag(bool);
Window* active_window()
{
VERIFY(m_current_window_stack);
@ -480,6 +482,7 @@ private:
OwnPtr<DndOverlay> m_dnd_overlay;
WeakPtr<ConnectionFromClient> m_dnd_client;
String m_dnd_text;
bool m_dnd_accepts_drag { false };
RefPtr<Core::MimeData> m_dnd_mime_data;