Commit f509f34d authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

autotests: Update property before updating

This opens an event loop which creates race conditions on m_context if
we receive a deactivate.
parent 50c167c9
......@@ -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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment