From 379235e6ac3124a4975a75472693ade03a1fb170 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 61f72fc6b614de71703a056ba557463126fdbb0b. The new size hints will be committed when the surface is committed. Change-Id: I94e944fee7dac63d5e9ac86fb348b5d24d54abfc Reviewed-by: Eskil Abrahamsen Blomfeldt --- tests/auto/wayland/xdgshell/tst_xdgshell.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/wayland/xdgshell/tst_xdgshell.cpp b/tests/auto/wayland/xdgshell/tst_xdgshell.cpp index 8a172356a37..3268964fcc9 100644 --- a/tests/auto/wayland/xdgshell/tst_xdgshell.cpp +++ b/tests/auto/wayland/xdgshell/tst_xdgshell.cpp @@ -623,9 +623,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)); }