Revision: 16186
http://sourceforge.net/p/skim-app/code/16186
Author: hofman
Date: 2026-04-07 14:17:42 +0000 (Tue, 07 Apr 2026)
Log Message:
-----------
make side window key before animation
Modified Paths:
--------------
trunk/SKSideWindow.m
Modified: trunk/SKSideWindow.m
===================================================================
--- trunk/SKSideWindow.m 2026-04-07 09:41:16 UTC (rev 16185)
+++ trunk/SKSideWindow.m 2026-04-07 14:17:42 UTC (rev 16186)
@@ -131,35 +131,21 @@
[window addChildWindow:self ordered:NSWindowAbove];
frame.size.width = NSWidth([mainContentView frame]) + CONTENT_INSET;
- if ([NSView shouldShowFadeAnimation] == NO) {
- [self setFrame:frame display:YES];
+ if ([NSView shouldShowSlideAnimation]) {
if ([window isKeyWindow])
[self makeKeyAndOrderFront:nil];
- else
- [self orderFront:nil];
- } else if ([NSView shouldShowSlideAnimation]) {
- [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context){
- [[self animator] setFrame:frame display:YES];
- }
- completionHandler:^{
- if ([window isKeyWindow])
- [self makeKeyAndOrderFront:nil];
- else
- [self orderFront:nil];
- }];
- } else {
+ [[self animator] setFrame:frame display:YES];
+ } else if ([NSView shouldShowFadeAnimation]) {
CGFloat alpha = [self alphaValue];
[self setAlphaValue:0.0];
[self setFrame:frame display:YES];
- [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context){
- [[self animator] setAlphaValue:alpha];
- }
- completionHandler:^{
- if ([window isKeyWindow])
- [self makeKeyAndOrderFront:nil];
- else
- [self orderFront:nil];
- }];
+ if ([window isKeyWindow])
+ [self makeKeyAndOrderFront:nil];
+ [[self animator] setAlphaValue:alpha];
+ } else {
+ [self setFrame:frame display:YES];
+ if ([window isKeyWindow])
+ [self makeKeyAndOrderFront:nil];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit