Skip to content
Snippets Groups Projects
Commit 3816dfe4 authored by George Nachman's avatar George Nachman
Browse files

Fix a bug where non-animated hotkey windows did not follow the cursor from...

Fix a bug where non-animated hotkey windows did not follow the cursor from screen to screen. Issue 5786.
parent fb19d694
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -353,14 +353,7 @@ static NSString *const kArrangement = @"Arrangement";
[NSApp activateIgnoringOtherApps:YES];
}
[self.windowController.window makeKeyAndOrderFront:nil];
if (!animated) {
[self moveToPreferredScreen];
self.windowController.window.alphaValue = 1;
[self rollInFinished];
return;
}
if ([iTermProfilePreferences boolForKey:KEY_HOTKEY_ANIMATE inProfile:self.profile]) {
if (animated) {
switch (self.windowController.windowType) {
case WINDOW_TYPE_TOP:
case WINDOW_TYPE_TOP_PARTIAL:
Loading
Loading
@@ -384,6 +377,7 @@ static NSString *const kArrangement = @"Arrangement";
assert(false);
}
} else {
[self moveToPreferredScreen];
self.windowController.window.alphaValue = 1;
[self rollInFinished];
}
Loading
Loading
@@ -762,7 +756,7 @@ static NSString *const kArrangement = @"Arrangement";
[self createWindowWithURL:url];
result = YES;
}
[self rollInAnimated:YES];
[self rollInAnimated:[iTermProfilePreferences boolForKey:KEY_HOTKEY_ANIMATE inProfile:self.profile]];
return result;
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment