gio: [Wayland] update the WindowMode when un-minimized v1 PROPOSED

~pierrec: 1
 [Wayland] update the WindowMode when un-minimized

 1 files changed, 5 insertions(+), 0 deletions(-)
#677366 apple.yml success
#677367 freebsd.yml success
#677368 linux.yml success
#677369 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/28601/mbox | git am -3
Learn more about email & git

[PATCH gio] [Wayland] update the WindowMode when un-minimized Export this patch

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

When a window goes from the Minimized state to Windowed
as the user brings it back up, the internal state needs
to reflect that change and generate the corresponding
Config event.

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
 app/os_wayland.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app/os_wayland.go b/app/os_wayland.go
index a8a95872..ed103694 100644
--- a/app/os_wayland.go
+++ b/app/os_wayland.go
@@ -552,6 +552,11 @@ func gio_onSurfaceEnter(data unsafe.Pointer, surf *C.struct_wl_surface, output *
		conf.windows = append(conf.windows, w)
	if w.config.Mode == Minimized {
		// Minimized window got brought back up: it is no longer so.
		w.config.Mode = Windowed
		w.w.Event(ConfigEvent{Config: w.config})

//export gio_onSurfaceLeave
gio/patches: SUCCESS in 24m59s

[[Wayland] update the WindowMode when un-minimized][0] from [~pierrec][1]

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

✓ #677367 SUCCESS gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/677367
✓ #677368 SUCCESS gio/patches/linux.yml   https://builds.sr.ht/~eliasnaur/job/677368
✓ #677369 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/677369
✓ #677366 SUCCESS gio/patches/apple.yml   https://builds.sr.ht/~eliasnaur/job/677366
Thanks. Merged with a subjet tweak.