internal/ui: use 'set' instead of 'push' for cursors

We don't need to use a cursor stack.
This commit is contained in:
Hajime Hoshi 2023-01-07 19:16:37 +09:00
parent ed8efa54e3
commit 86fa9366f7

View File

@ -285,7 +285,7 @@ func (u *userInterfaceImpl) setNativeCursor(shape CursorShape) {
case 5:
cursor = NSCursor.Send(sel_performSelector, objc.RegisterName("_windowResizeNorthSouthCursor"))
}
cursor.Send(objc.RegisterName("push"))
cursor.Send(objc.RegisterName("set"))
}
func (u *userInterfaceImpl) isNativeFullscreenAvailable() bool {