From cbaaeb89c5ec6b617c907e6ca7cd934bff37c770 Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Tue, 25 May 2021 18:49:31 -0700 Subject: [PATCH] Fix idle bug + app delegate bug --- src/Core/App.re | 1 + src/Native/cocoa/ReveryAppDelegate.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Core/App.re b/src/Core/App.re index 29ac80c38..e773e23f7 100644 --- a/src/Core/App.re +++ b/src/Core/App.re @@ -222,6 +222,7 @@ let start = init => { let _ = Sdl2.ScreenSaver.enable(); let _handleEvent = evt => { + appInstance.idleCount = 0; let handleEvent = windowID => { let window = getWindowById(appInstance, windowID); switch (window) { diff --git a/src/Native/cocoa/ReveryAppDelegate.c b/src/Native/cocoa/ReveryAppDelegate.c index d2b820b7a..22437c980 100644 --- a/src/Native/cocoa/ReveryAppDelegate.c +++ b/src/Native/cocoa/ReveryAppDelegate.c @@ -22,6 +22,7 @@ NSString *valueToSave = @"true"; [[NSUserDefaults standardUserDefaults] setObject:valueToSave forKey:@"ApplePressAndHoldEnabled"]; + [[NSUserDefaults standardUserDefaults] setObject:valueToSave forKey:@"AppleMomentumScrollSupported"]; [[NSUserDefaults standardUserDefaults] synchronize]; return self;