[Window] Expose start_drag and start_resize methods (for both native and embedded windows).
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user