1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

[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

@@ -5496,6 +5496,10 @@ void DisplayServerX11::window_start_drag(WindowID p_window) {
ERR_FAIL_COND(!windows.has(p_window));
WindowData &wd = windows[p_window];
if (wd.embed_parent) {
return; // Embedded window.
}
XClientMessageEvent m;
memset(&m, 0, sizeof(m));
@@ -5532,6 +5536,10 @@ void DisplayServerX11::window_start_resize(WindowResizeEdge p_edge, WindowID p_w
ERR_FAIL_COND(!windows.has(p_window));
WindowData &wd = windows[p_window];
if (wd.embed_parent) {
return; // Embedded window.
}
XClientMessageEvent m;
memset(&m, 0, sizeof(m));