forked from joejulian/gio
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user