From f509f34dbd16edc8a11b333e9bfb56118c92c4d6 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 19 Jan 2022 02:50:33 +0100 Subject: [PATCH] autotests: Update property before updating This opens an event loop which creates race conditions on m_context if we receive a deactivate. --- autotests/integration/test_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/integration/test_helpers.cpp b/autotests/integration/test_helpers.cpp index cf13333142..0062b9330c 100644 --- a/autotests/integration/test_helpers.cpp +++ b/autotests/integration/test_helpers.cpp @@ -278,8 +278,8 @@ void MockInputMethod::zwp_input_method_v1_activate(struct ::zwp_input_method_con m_inputSurface = Test::createSurface(); m_inputMethodSurface = Test::createInputPanelSurfaceV1(m_inputSurface, s_waylandConnection.outputs.first()); } - m_client = Test::renderAndWaitForShown(m_inputSurface, QSize(1280, 400), Qt::blue); m_context = context; + m_client = Test::renderAndWaitForShown(m_inputSurface, QSize(1280, 400), Qt::blue); Q_EMIT activate(); }