]> git.saurik.com Git - cydget.git/commitdiff
Just in case, cancel menu action when menu is held.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 24 Jan 2014 17:49:32 +0000 (09:49 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 24 Jan 2014 17:49:32 +0000 (09:49 -0800)
CydgetLoader.mm

index 8615000295fe86785bc77bfbf834a01566ea80ff..c73ae2091a4fa7fd2b8edb67c9352a2d7c57a509 100644 (file)
@@ -245,6 +245,11 @@ MSInstanceMessageHook1(void, SBUserAgent, dimScreen, BOOL, dim) {
     MSOldCall(dim);
 }
 
+MSInstanceMessageHook0(void, SpringBoard, _menuButtonWasHeld) {
+    menu_ = false;
+    MSOldCall();
+}
+
 MSInstanceMessageHook1(void, SpringBoard, _menuButtonDown, GSEventRef, event) {
     menu_ = true;
     MSOldCall(event);