Skip to content

Fix issue with repeated window size changes

Check if the new window size is different from the size requested previously before calling wl_egl_window_resize. It addresses the issue where repeated setGeometry calls between two sizes might not work as expected. The problem occurs when wl_egl_window_get_attached_size does not get the same size that was requested by the previous setGeometry call. If the returned size happened to match the new size instead, we would mistakenly skip the resize.

Change-Id: Iafe4a91cc707f854b9099b6109b6be1423d7bd29 Reviewed-by: Eskil Abrahamsen Blomfeldt eskil.abrahamsen-blomfeldt@qt.io (cherry picked from commit 14d066c6)


This fixes https://bugs.kde.org/show_bug.cgi?id=436682
Original ticket: https://codereview.qt-project.org/c/qt/qtwayland/+/334532

Edited by Vlad Zahorodnii

Merge request reports