mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
app: update Window for macOS, X11 and Wayland
Commit #c4f98d3c1eab201419be255fafb139f7e10ad273 added the Minimized and Maximized options for the Windows platform. This change adds those for the remaining desktop platforms. Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
+2
-2
@@ -704,8 +704,8 @@ func Size(w, h unit.Value) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// Center is an option to center the window on the screen.
|
||||
// The option is ignored in Fullscreen mode.
|
||||
// Centered is an option to center the window on the screen.
|
||||
// The option is ignored in Fullscreen mode and on Wayland.
|
||||
func Centered() Option {
|
||||
return func(m unit.Metric, cnf *Config) {
|
||||
// Set the flag so the driver can later do the actual centering.
|
||||
|
||||
Reference in New Issue
Block a user