fix drag-and-drop in windows

This commit is contained in:
Garetonchick
2024-09-20 17:01:35 +03:00
parent 621cadcf65
commit 2bd759964e
5 changed files with 489 additions and 31 deletions

View File

@ -356,9 +356,13 @@ typedef enum _SHC_PROCESS_DPI_AWARENESS {
SHC_PROCESS_PER_MONITOR_DPI_AWARE = 2,
} SHC_PROCESS_DPI_AWARENESS;
class DropTargetWindows;
class DisplayServerWindows : public DisplayServer {
// No need to register with GDCLASS, it's platform-specific and nothing is added.
friend class DropTargetWindows;
_THREAD_SAFE_CLASS_
// UXTheme API
@ -519,6 +523,9 @@ class DisplayServerWindows : public DisplayServer {
Callable input_text_callback;
Callable drop_files_callback;
// OLE API
DropTargetWindows *drop_target = nullptr;
WindowID transient_parent = INVALID_WINDOW_ID;
HashSet<WindowID> transient_children;