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

Ensures that all pending events are processed and we actually have
created the ShellSlient.
icc-effect-5.14.5
Martin Gräßlin 2015-08-20 14:05:55 +02:00
parent ef20f82b4d
commit a10be8a7d7
1 changed files with 1 additions and 0 deletions

View File

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