mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
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 <pierre.curto@gmail.com>
This commit is contained in:
+1
-1
@@ -798,10 +798,10 @@ func newX11Window(gioWin *callbacks, options []Option) error {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
w.w.SetDriver(w)
|
w.w.SetDriver(w)
|
||||||
w.Configure(options)
|
|
||||||
|
|
||||||
// make the window visible on the screen
|
// make the window visible on the screen
|
||||||
C.XMapWindow(dpy, win)
|
C.XMapWindow(dpy, win)
|
||||||
|
w.Configure(options)
|
||||||
w.w.Event(ViewEvent{Display: unsafe.Pointer(dpy), Window: uintptr(win)})
|
w.w.Event(ViewEvent{Display: unsafe.Pointer(dpy), Window: uintptr(win)})
|
||||||
w.setStage(system.StageRunning)
|
w.setStage(system.StageRunning)
|
||||||
w.loop()
|
w.loop()
|
||||||
|
|||||||
Reference in New Issue
Block a user