forked from joejulian/gio
app,app/internal/wm: [macOS] refresh context on display change
The NSViewGlobalFrameDidChangeNotification notification is documented to be fired every time [NSOpenGLContext update] needs to be called. However, the notification fails to fire on my setup when a window is moved to a display with a different pixel scale, which leads to incorrectly sized output. This change gets rid of the notification and updates the context before every frame. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ import (
|
||||
// ViewEvent carries the platform specific window handles for
|
||||
// a Window.
|
||||
//
|
||||
// ViewEvent is implemented on Android and macOS.
|
||||
// ViewEvent is implemented for Android, macOS, Windows.
|
||||
type ViewEvent = wm.ViewEvent
|
||||
|
||||
// extraArgs contains extra arguments to append to
|
||||
|
||||
Reference in New Issue
Block a user