<164277986057.2416.10049449566766558636-0@git.sr.ht>
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) } w.updateOutputs() + 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 -- 2.32.0
<CHBHE3F8ITFI.2TR19Y4IEOBLI@cirno>
<164277986057.2416.10049449566766558636-0@git.sr.ht>
(view parent)
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]: 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
<CHC0KASWRQCO.E6CRS7KNYPY4@macbog.local>
<164277986057.2416.10049449566766558636-0@git.sr.ht>
(view parent)
Thanks. Merged with a subjet tweak. Elias