Skip to content

Commit

Permalink
Merge pull request #1584 from quicksilver/i1583
Browse files Browse the repository at this point in the history
keep AppKit calls on the main thread
  • Loading branch information
pjrobertson committed Sep 4, 2013
2 parents 1575ce7 + c8f7624 commit 3fbc7cb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Quicksilver/Code-QuickStepInterface/QSInterfaceController.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,13 @@ - (QSBasicObject *)selection {
}

- (void)showMainWindow:(id)sender {
[[self window] makeKeyAndOrderFront:sender];
if ([[NSUserDefaults standardUserDefaults] boolForKey:kSuppressHotKeysInCommand]) {
CGSConnection conn = _CGSDefaultConnection();
CGSSetGlobalHotKeyOperatingMode(conn, CGSGlobalHotKeyDisable);
}
runOnMainQueueSync(^{
[[self window] makeKeyAndOrderFront:sender];
});
if ([[NSUserDefaults standardUserDefaults] boolForKey:kSuppressHotKeysInCommand]) {
CGSConnection conn = _CGSDefaultConnection();
CGSSetGlobalHotKeyOperatingMode(conn, CGSGlobalHotKeyDisable);
}

if ([[NSUserDefaults standardUserDefaults] boolForKey:@"QSSwitchKeyboardOnActivation"]) {
savedKeyboard = TISCopyCurrentKeyboardLayoutInputSource();
Expand Down

0 comments on commit 3fbc7cb

Please sign in to comment.