app/internal/window: don't use C.BOOL

Apparently, darwin/arm64 cgo doesn't match the types of YES and BOOL:

os_macos.go:235:40: cannot use _Ciconst_YES (type untyped int) as type _Ctype__Bool

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-12-14 23:40:29 +01:00
parent f3ab8d6368
commit 5839e3e8d5
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -230,9 +230,9 @@ func gio_onDraw(view C.CFTypeRef) {
}
//export gio_onFocus
func gio_onFocus(view C.CFTypeRef, focus C.BOOL) {
func gio_onFocus(view C.CFTypeRef, focus C.int) {
w := mustView(view)
w.w.Event(key.FocusEvent{Focus: focus == C.YES})
w.w.Event(key.FocusEvent{Focus: focus == 1})
w.SetCursor(w.cursor)
}