From 68fa3c49db720645da2c653a8c8f9d92c0d6815f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 2 Feb 2013 14:20:24 +0100 Subject: cocoa_events: remove this functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This functionality looked smart but created problems with some kinds of multi touch events. Moreover some events coming from the windows server – like hovering a corner for window resize – didn't cause the player to wake up immediately. The "correct" non hacky way to implement async event polling with cocoa would be having the vanilla cocoa event loop driving the player and setting up mpv's terminal FDs as event sources for the cocoa event loop. Fixes #20 --- video/out/cocoa_common.m | 1 + 1 file changed, 1 insertion(+) (limited to 'video') diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 27f8380112..4f60eb9cba 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -196,6 +196,7 @@ static void disable_power_management(struct vo *vo) int vo_cocoa_init(struct vo *vo) { vo->cocoa = vo_cocoa_init_state(vo); + vo->wakeup_period = 0.02; _instances++; NSApplicationLoad(); -- cgit v1.2.3