From 64add13d28f1d6e26b3090e1086afaa57d888eaa Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 24 Sep 2019 17:26:34 +0200 Subject: [PATCH] ui/app: (wayland) wait for xdg_shell configure event before drawing According to the xdg_shell documentation, the xdg_surface must be configured before use. Signed-off-by: Elias Naur --- ui/app/os_wayland.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/os_wayland.go b/ui/app/os_wayland.go index be14ebf4..55a56c08 100644 --- a/ui/app/os_wayland.go +++ b/ui/app/os_wayland.go @@ -180,7 +180,6 @@ func createWindow(window *Window, opts *windowOptions) error { w.w = window go func() { w.w.setDriver(w) - w.setStage(StageRunning) w.loop() w.destroy() conn.destroy() @@ -310,6 +309,7 @@ func gio_onXdgSurfaceConfigure(data unsafe.Pointer, wmSurf *C.struct_xdg_surface w.serial = serial w.needAck = true w.mu.Unlock() + w.setStage(StageRunning) w.draw(true) }