app: [macOS] redraw when window moves to a different monitor

The monitor may have a different backing store scale, yet the
system doesn't redraw automatically when that happens

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-03-01 19:50:12 +01:00
parent 34f10d9cbb
commit 1fa9dd0fd0
+1
View File
@@ -504,6 +504,7 @@ func gio_onFocus(view C.CFTypeRef, focus C.int) {
func gio_onChangeScreen(view C.CFTypeRef, did uint64) {
w := mustView(view)
w.displayLink.SetDisplayID(did)
C.setNeedsDisplay(w.view)
}
//export gio_hasMarkedText