Fixed an issue where clicking the maximize button could progressively shrink the window in some Wayland environments. #52074 (Also in 42, 43)