Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0
-
None
Description
The following code works ok on X11 and Windows but fails to apply the last resize on Wayland:
#include <QApplication> #include <QScreen> #include <QWidget> #include <QTimer> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWidget widget; widget.setScreen(QGuiApplication::primaryScreen()); widget.setGeometry(QGuiApplication::primaryScreen()->geometry()); widget.showFullScreen(); QTimer::singleShot(1000, [&] { widget.showNormal(); widget.resize(100, 100); }); return app.exec(); }
If I remove the timer, it fails to even exit from fullscreen. If I swap showNormal and resize calls (without removing the timer), it changes the geometry but doesn't exit fullscreen.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-129982 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
597450,1 | xdgshell: update normal size for setWindowSize | dev | qt/qtwayland | Status: NEW | 0 | 0 |