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 <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-09-24 17:26:34 +02:00
parent 687ea833a3
commit 64add13d28
+1 -1
View File
@@ -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)
}