Wayland: Fix window fitting in single-window mode

We disabled window fitting in multi-window mode as it was broken due to
the limited data but it should still be enabled for embedded windows.
This commit is contained in:
Riteo 2025-05-20 23:54:56 +02:00
parent be3ecaeb3c
commit 408de3c970
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ Rect2i Popup::_popup_adjust_rect() const {
Rect2i current(get_position(), get_size());
if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_SELF_FITTING_WINDOWS)) {
if (!is_embedded() && DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_SELF_FITTING_WINDOWS)) {
// We're fine as is, the Display Server will take care of that for us.
return current;
}