app: [X11] avoid deadlock when sending initial ConfigEvent

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-09-24 12:48:10 +02:00
parent bdafb3564f
commit 868ea76acf
+5 -5
View File
@@ -733,12 +733,12 @@ func newX11Window(gioWin *callbacks, options []Option) error {
// extensions
C.XSetWMProtocols(dpy, win, &w.atoms.evDelWindow, 1)
w.Configure(options)
// make the window visible on the screen
C.XMapWindow(dpy, win)
go func() {
w.Configure(options)
// make the window visible on the screen
C.XMapWindow(dpy, win)
w.w.SetDriver(w)
w.w.Event(ViewEvent{Display: unsafe.Pointer(dpy), Window: uintptr(win)})
w.setStage(system.StageRunning)