From 1fa9dd0fd0ccea9c63529dd4f36e823ae1f764f9 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 1 Mar 2022 19:50:12 +0100 Subject: [PATCH] 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 --- app/os_macos.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/os_macos.go b/app/os_macos.go index 832bd995..44c820ee 100644 --- a/app/os_macos.go +++ b/app/os_macos.go @@ -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