Skip to content

Commit f8724e4

Browse files
committed
Merge pull request #101538 from bruvzg/wdrag_ftr
[DisplayServer] Add missing `FEATURE_WINDOW_DRAG` flag to Windows, X11 and Wayland display servers.
2 parents ddd4527 + 2e99d84 commit f8724e4

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

doc/classes/DisplayServer.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@
19371937
The display server supports all features of [constant FEATURE_NATIVE_DIALOG_FILE], with the added functionality of Options and native dialog file access to [code]res://[/code] and [code]user://[/code] paths. See [method file_dialog_show] and [method file_dialog_with_options_show]. [b]Windows, macOS, Linux (X11/Wayland)[/b]
19381938
</constant>
19391939
<constant name="FEATURE_WINDOW_DRAG" value="27" enum="Feature">
1940-
The display server supports initiating window drag operation on demand. See [method window_start_drag].
1940+
The display server supports initiating window drag and resize operations on demand. See [method window_start_drag] and [method window_start_resize].
19411941
</constant>
19421942
<constant name="FEATURE_SCREEN_EXCLUDE_FROM_CAPTURE" value="28" enum="Feature">
19431943
Display server supports [constant WINDOW_FLAG_EXCLUDE_FROM_CAPTURE] window flag.

platform/linuxbsd/wayland/display_server_wayland.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ bool DisplayServerWayland::has_feature(Feature p_feature) const {
209209
case FEATURE_SWAP_BUFFERS:
210210
case FEATURE_KEEP_SCREEN_ON:
211211
case FEATURE_IME:
212+
case FEATURE_WINDOW_DRAG:
212213
case FEATURE_CLIPBOARD_PRIMARY: {
213214
return true;
214215
} break;

platform/linuxbsd/x11/display_server_x11.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ bool DisplayServerX11::has_feature(Feature p_feature) const {
152152
case FEATURE_CLIPBOARD_PRIMARY:
153153
case FEATURE_TEXT_TO_SPEECH:
154154
case FEATURE_WINDOW_EMBEDDING:
155+
case FEATURE_WINDOW_DRAG:
155156
return true;
156157
case FEATURE_SCREEN_CAPTURE:
157158
return !xwayland;

platform/windows/display_server_windows.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ bool DisplayServerWindows::has_feature(Feature p_feature) const {
138138
case FEATURE_SCREEN_CAPTURE:
139139
case FEATURE_STATUS_INDICATOR:
140140
case FEATURE_WINDOW_EMBEDDING:
141+
case FEATURE_WINDOW_DRAG:
141142
case FEATURE_SCREEN_EXCLUDE_FROM_CAPTURE:
142143
return true;
143144
case FEATURE_EMOJI_AND_SYMBOL_PICKER:

0 commit comments

Comments
 (0)