[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:
parent
ef20f82b4d
commit
a10be8a7d7
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue