[Window] Expose start_drag and start_resize methods (for both native and embedded windows).

This commit is contained in:
Pāvels Nadtočajevs
2025-01-07 14:11:45 +02:00
parent aa65940a85
commit 8d911b2554
7 changed files with 127 additions and 0 deletions

View File

@ -3990,6 +3990,10 @@ void DisplayServerWindows::window_start_drag(WindowID p_window) {
ERR_FAIL_COND(!windows.has(p_window));
WindowData &wd = windows[p_window];
if (wd.parent_hwnd) {
return; // Embedded window.
}
ReleaseCapture();
POINT coords;
@ -4006,6 +4010,10 @@ void DisplayServerWindows::window_start_resize(WindowResizeEdge p_edge, WindowID
ERR_FAIL_COND(!windows.has(p_window));
WindowData &wd = windows[p_window];
if (wd.parent_hwnd) {
return; // Embedded window.
}
ReleaseCapture();
POINT coords;