aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Anderson <scott.anderson@collabora.com>2019-12-04 21:18:36 +1300
committerScott Anderson <scott.anderson@collabora.com>2019-12-04 21:21:40 +1300
commit55a7d59845b1f4992551e463671376897759db3e (patch)
tree13030d93b71dff15b62c6d29439d74d4bf80f2ba
parent9af877d3a775763d9199ffa897948f5009bd8a7b (diff)
Flush pending wayland events
Qt doesn't do this itself in a.exec(), so pending configure events weren't being processed before agl_shell_ready() was called.
-rw-r--r--homescreen/src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp
index 98cec6f..e13f9bc 100644
--- a/homescreen/src/main.cpp
+++ b/homescreen/src/main.cpp
@@ -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());