aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2019-12-26 11:05:21 +0200
committerMarius Vlad <marius.vlad@collabora.com>2020-01-21 20:09:46 +0200
commit9e97727103f761474a70d5aef4cbfbc32562b4c0 (patch)
treec0a7991c1538da88692df8c0e8e2dd61e9016f10
parent9926cc7a7c5e4046ad35df90fb314f433eab9379 (diff)
homescreen/src: Flush pending events after the initial configure events
Flushing it afterwards results in blank screen on Qt 5.11. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I65807a4c86df33d4697cd5771ae7d3abed80c78d
-rw-r--r--homescreen/src/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp
index 98cec6f..90027e3 100644
--- a/homescreen/src/main.cpp
+++ b/homescreen/src/main.cpp
@@ -200,13 +200,14 @@ int main(int argc, char *argv[])
output = static_cast<struct wl_output *>(native->nativeResourceForScreen("output", screen));
struct wl_surface *bg = create_component(native, &bg_comp, screen);
- agl_shell_set_background(agl_shell, bg, output);
-
struct wl_surface *top = create_component(native, &top_comp, screen);
- agl_shell_set_panel(agl_shell, top, output, AGL_SHELL_EDGE_TOP);
-
struct wl_surface *bot = create_component(native, &bot_comp, screen);
+
+ wl_display_dispatch(wl);
+
+ agl_shell_set_panel(agl_shell, top, output, AGL_SHELL_EDGE_TOP);
agl_shell_set_panel(agl_shell, bot, output, AGL_SHELL_EDGE_BOTTOM);
+ agl_shell_set_background(agl_shell, bg, output);
}
// Delay the ready signal until after Qt has done all of its own setup in a.exec()