mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
app: add Maximize and Center methods support for macOS and X11
Commit 9835cd59 added support for the Window.Maximize and
Window.Center methods for Windows only.
This patch also adds support for macOS and X11.
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
+2
-2
@@ -312,7 +312,7 @@ func (w *Window) Close() {
|
||||
}
|
||||
|
||||
// Maximize the window.
|
||||
// Note: only implemented on Windows.
|
||||
// Note: only implemented on Windows, macOS and X11.
|
||||
func (w *Window) Maximize() {
|
||||
w.driverDefer(func(d driver) {
|
||||
d.Maximize()
|
||||
@@ -320,7 +320,7 @@ func (w *Window) Maximize() {
|
||||
}
|
||||
|
||||
// Center the window.
|
||||
// Note: only implemented on Windows.
|
||||
// Note: only implemented on Windows, macOS and X11.
|
||||
func (w *Window) Center() {
|
||||
w.driverDefer(func(d driver) {
|
||||
d.Center()
|
||||
|
||||
Reference in New Issue
Block a user