diff options
author | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2023-09-15 10:06:32 +0300 |
---|---|---|
committer | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2023-09-25 14:31:32 +0300 |
commit | 5a5190e76bc794aaeb1c9db1435582252a784908 (patch) | |
tree | 674b5f099b69a9d9949aeb84da972108879b3f7e | |
parent | 23bfe55840aa53c9dfdb970b7e245e7e62eb8580 (diff) |
tests: Fix tst_xdgshell::minMaxSize()
Amends e8cff6fb39c0fd01548bce18542820a6612dbe49.
The new size hints will be committed when the surface is committed.
Change-Id: I94e944fee7dac63d5e9ac86fb348b5d24d54abfc
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
(cherry picked from commit d8d3d6097afeac62f1b0285e3d5365c7cb580547)
Reviewed-by: David Edmundson <davidedmundson@kde.org>
-rw-r--r-- | tests/auto/client/xdgshell/tst_xdgshell.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/client/xdgshell/tst_xdgshell.cpp b/tests/auto/client/xdgshell/tst_xdgshell.cpp index ba4027be1..a79826936 100644 --- a/tests/auto/client/xdgshell/tst_xdgshell.cpp +++ b/tests/auto/client/xdgshell/tst_xdgshell.cpp @@ -621,9 +621,11 @@ void tst_xdgshell::minMaxSize() QCOMPOSITOR_TRY_COMPARE(xdgToplevel()->m_committed.maxSize, QSize(1000, 1000)); window.setMaximumSize(QSize(500, 400)); + window.update(); QCOMPOSITOR_TRY_COMPARE(xdgToplevel()->m_committed.maxSize, QSize(500, 400)); window.setMinimumSize(QSize(50, 40)); + window.update(); QCOMPOSITOR_TRY_COMPARE(xdgToplevel()->m_committed.minSize, QSize(50, 40)); } |