[qpa] Dispatch Wayland server before trying to find a ShellClient

Ensures that all pending events are processed and we actually have
created the ShellSlient.
This commit is contained in:
Martin Gräßlin 2015-08-20 14:05:55 +02:00
parent ef20f82b4d
commit a10be8a7d7

View file

@ -144,6 +144,7 @@ void Window::createFBO()
ShellClient *Window::shellClient() ShellClient *Window::shellClient()
{ {
if (!m_shellClient) { if (!m_shellClient) {
waylandServer()->dispatch();
m_shellClient = waylandServer()->findClient(window()); m_shellClient = waylandServer()->findClient(window());
} }
return m_shellClient; return m_shellClient;