Revision: 13702
http://sourceforge.net/p/skim-app/code/13702
Author: hofman
Date: 2023-10-27 22:04:55 +0000 (Fri, 27 Oct 2023)
Log Message:
-----------
Don't custom animate window for fullscreen transition when there is no note or
snapshot window, by lying about responding to delegate methods
Modified Paths:
--------------
trunk/SKMainWindowController_FullScreen.m
Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m 2023-10-27 14:01:14 UTC (rev
13701)
+++ trunk/SKMainWindowController_FullScreen.m 2023-10-27 22:04:55 UTC (rev
13702)
@@ -814,6 +814,19 @@
mwcFlags.wantsPresentation = 0;
}
+- (BOOL)respondsToSelector:(SEL)aSelector {
+ if (NO == [super respondsToSelector:aSelector])
+ return NO;
+ else if ((aSelector == @selector(customWindowsToEnterFullScreenForWindow:)
||
+ aSelector ==
@selector(window:startCustomAnimationToEnterFullScreenWithDuration:) ||
+ aSelector ==
@selector(customWindowsToExitFullScreenForWindow:) ||
+ aSelector ==
@selector(window:startCustomAnimationToExitFullScreenWithDuration:)) &&
+ [[[self document] windowControllers] count] == 1)
+ return NO;
+ else
+ return YES;
+}
+
#pragma mark Presentation Notes Navigation
- (NSView *)presentationNotesView {
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