You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
1 month ago
|
From aa865b7cc8f38bd8ad4a5a0cb75effa1e7dbc9ed Mon Sep 17 00:00:00 2001
|
||
|
From: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
||
|
Date: Fri, 15 Sep 2023 10:06:32 +0300
|
||
|
Subject: [PATCH 52/59] 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)
|
||
|
---
|
||
|
tests/auto/client/xdgshell/tst_xdgshell.cpp | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/tests/auto/client/xdgshell/tst_xdgshell.cpp b/tests/auto/client/xdgshell/tst_xdgshell.cpp
|
||
|
index c5271f63..f2181fd6 100644
|
||
|
--- 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));
|
||
|
}
|
||
|
|
||
|
--
|
||
|
2.46.0
|
||
|
|