mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +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
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue