mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
app: detect fullscreen mode for macOS and Windows
When an application goes into or out of fullscreen mode, Gio now emits a ConfigEvent with the current window mode. Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
@@ -679,6 +679,10 @@ func UpdateWindow(hwnd syscall.Handle) {
|
||||
_UpdateWindow.Call(uintptr(hwnd))
|
||||
}
|
||||
|
||||
func (p WindowPlacement) Rect() Rect {
|
||||
return p.rcNormalPosition
|
||||
}
|
||||
|
||||
// issue34474KeepAlive calls runtime.KeepAlive as a
|
||||
// workaround for golang.org/issue/34474.
|
||||
func issue34474KeepAlive(v interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user