mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
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:
@@ -504,6 +504,7 @@ func gio_onFocus(view C.CFTypeRef, focus C.int) {
|
|||||||
func gio_onChangeScreen(view C.CFTypeRef, did uint64) {
|
func gio_onChangeScreen(view C.CFTypeRef, did uint64) {
|
||||||
w := mustView(view)
|
w := mustView(view)
|
||||||
w.displayLink.SetDisplayID(did)
|
w.displayLink.SetDisplayID(did)
|
||||||
|
C.setNeedsDisplay(w.view)
|
||||||
}
|
}
|
||||||
|
|
||||||
//export gio_hasMarkedText
|
//export gio_hasMarkedText
|
||||||
|
|||||||
Reference in New Issue
Block a user