Merge pull request #89178 from Riteo/gotta-have-them-all

Wayland: Properly report all used features
This commit is contained in:
Rémi Verschelde 2024-03-05 14:55:36 +01:00
commit f9ebd84b5a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 16 additions and 5 deletions

View File

@ -193,19 +193,30 @@ void DisplayServerWayland::_show_window() {
bool DisplayServerWayland::has_feature(Feature p_feature) const {
switch (p_feature) {
case FEATURE_MOUSE:
case FEATURE_MOUSE_WARP:
case FEATURE_CLIPBOARD:
case FEATURE_CURSOR_SHAPE:
case FEATURE_CUSTOM_CURSOR_SHAPE:
case FEATURE_WINDOW_TRANSPARENCY:
case FEATURE_HIDPI:
case FEATURE_SWAP_BUFFERS:
case FEATURE_KEEP_SCREEN_ON:
case FEATURE_CLIPBOARD_PRIMARY:
#ifdef DBUS_ENABLED
case FEATURE_NATIVE_DIALOG:
#endif
case FEATURE_HIDPI: {
case FEATURE_CLIPBOARD_PRIMARY: {
return true;
} break;
#ifdef DBUS_ENABLED
case FEATURE_NATIVE_DIALOG: {
return true;
} break;
#endif
#ifdef SPEECHD_ENABLED
case FEATURE_TEXT_TO_SPEECH: {
return true;
} break;
#endif
default: {
return false;
}