Flush pending wayland events
authorScott Anderson <scott.anderson@collabora.com>
Wed, 4 Dec 2019 08:18:36 +0000 (21:18 +1300)
committerScott Anderson <scott.anderson@collabora.com>
Wed, 4 Dec 2019 08:21:40 +0000 (21:21 +1300)
Qt doesn't do this itself in a.exec(), so pending configure events
weren't being processed before agl_shell_ready() was called.

homescreen/src/main.cpp

index 98cec6f..e13f9bc 100644 (file)
@@ -209,6 +209,8 @@ int main(int argc, char *argv[])
         agl_shell_set_panel(agl_shell, bot, output, AGL_SHELL_EDGE_BOTTOM);
     }
 
+    wl_display_dispatch(wl);
+
     // Delay the ready signal until after Qt has done all of its own setup in a.exec()
     QTimer::singleShot(0, [shell](){
         agl_shell_ready(shell.get());