From 08f6c09699998a47caa0866bab2afafa620327c3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 15 Sep 2023 10:06:32 +0300 Subject: [PATCH] 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 (cherry picked from commit d8d3d6097afeac62f1b0285e3d5365c7cb580547) --- tests/auto/client/xdgshell/tst_xdgshell.cpp | 2 ++ 1 file changed, 2 insertions(+) --- a/tests/auto/client/xdgshell/tst_xdgshell.cpp +++ b/tests/auto/client/xdgshell/tst_xdgshell.cpp @@ -604,9 +604,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)); }