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 <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2022-01-21 16:43:47 +01:00
committed by Elias Naur
parent cf54e39736
commit 0010ec1389
+5
View File
@@ -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