From 7c86074a1574d6e79876ce1dd2fc5000f35a913b Mon Sep 17 00:00:00 2001 From: der richter Date: Wed, 27 Mar 2024 21:57:56 +0100 Subject: [PATCH] mac/apphub: make DnD behaviour on bundle icon configurable we just need to add a OptionHelper to the AppHub, options were already tried to read from the optional OptionHelper. --- osdep/mac/app_hub.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osdep/mac/app_hub.swift b/osdep/mac/app_hub.swift index fe5160cf51..22f30dd9b3 100644 --- a/osdep/mac/app_hub.swift +++ b/osdep/mac/app_hub.swift @@ -20,6 +20,7 @@ class AppHub: NSObject { var mpv: OpaquePointer? @objc var input: InputHelper + var option: OptionHelper? var event: EventHelper? var menu: MenuBar? #if HAVE_MACOS_MEDIA_PLAYER @@ -44,6 +45,8 @@ class AppHub: NSObject { } @objc func initMpv(_ mpv: OpaquePointer) { + option = OptionHelper(UnsafeMutablePointer(mpv), mp_client_get_global(mpv)) + input.option = option event = EventHelper(self, mpv) self.mpv = event?.mpv