From 8c2d9a9a57728eb442a16c97deeb2daa98f8018f Mon Sep 17 00:00:00 2001 From: Pierre Curto Date: Thu, 20 Jan 2022 10:18:08 +0100 Subject: [PATCH] app: apply WindowModes at startup As reported on slack by Rajiv Kanchan, when a WindowMode is used with app.NewWindow, it does not get applied. Delay the Configure method to make sure it is. Signed-off-by: Pierre Curto --- app/os_x11.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/os_x11.go b/app/os_x11.go index 939b3bec..97525bec 100644 --- a/app/os_x11.go +++ b/app/os_x11.go @@ -798,10 +798,10 @@ func newX11Window(gioWin *callbacks, options []Option) error { go func() { w.w.SetDriver(w) - w.Configure(options) // make the window visible on the screen C.XMapWindow(dpy, win) + w.Configure(options) w.w.Event(ViewEvent{Display: unsafe.Pointer(dpy), Window: uintptr(win)}) w.setStage(system.StageRunning) w.loop()