~eliasnaur/gio-patches

gio: [X11] app: apply WindowModes at startup v1 PROPOSED

~pierrec: 1
 [X11] app: apply WindowModes at startup

 1 files changed, 1 insertions(+), 1 deletions(-)
#676394 apple.yml success
#676395 freebsd.yml success
#676396 linux.yml success
#676397 openbsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/28529/mbox | git am -3
Learn more about email & git

[PATCH gio] [X11] app: apply WindowModes at startup Export this patch

From: Pierre Curto <pierre.curto@gmail.com>

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>
---
 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()
-- 
2.32.0
gio/patches: SUCCESS in 19m19s

[[X11] app: apply WindowModes at startup][0] from [~pierrec][1]

[0]: https://lists.sr.ht/~eliasnaur/gio-patches/patches/28529
[1]: mailto:pierre.curto@gmail.com

✓ #676397 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/676397
✓ #676395 SUCCESS gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/676395
✓ #676394 SUCCESS gio/patches/apple.yml   https://builds.sr.ht/~eliasnaur/job/676394
✓ #676396 SUCCESS gio/patches/linux.yml   https://builds.sr.ht/~eliasnaur/job/676396
Great, thanks.

Elias