From 0010ec138978802d9cf4264f8c19f524d3fa946e Mon Sep 17 00:00:00 2001 From: Pierre Curto Date: Fri, 21 Jan 2022 16:43:47 +0100 Subject: [PATCH] app: [Wayland] update the window mode when un-minimized 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 --- 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