mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user