From a10be8a7d72b1efb3272f23fc436b5e8af372c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 20 Aug 2015 14:05:55 +0200 Subject: [PATCH] [qpa] Dispatch Wayland server before trying to find a ShellClient Ensures that all pending events are processed and we actually have created the ShellSlient. --- plugins/qpa/window.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/qpa/window.cpp b/plugins/qpa/window.cpp index 5944a4e844..12a6086b5a 100644 --- a/plugins/qpa/window.cpp +++ b/plugins/qpa/window.cpp @@ -144,6 +144,7 @@ void Window::createFBO() ShellClient *Window::shellClient() { if (!m_shellClient) { + waylandServer()->dispatch(); m_shellClient = waylandServer()->findClient(window()); } return m_shellClient;