Revision: 9503
http://sourceforge.net/p/skim-app/code/9503
Author: hofman
Date: 2017-11-26 23:04:07 +0000 (Sun, 26 Nov 2017)
Log Message:
-----------
Handle failure to exit fullscreen
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2017-11-26 22:49:37 UTC (rev 9502)
+++ trunk/SKMainWindowController.m 2017-11-26 23:04:07 UTC (rev 9503)
@@ -1826,6 +1826,23 @@
}
}
+- (void)windowDidFailToExitFullScreen:(NSWindow *)window {
+ if (interactionMode == SKNormalMode) {
+ interactionMode = SKFullScreenMode;
+ NSColor *backgroundColor = [[NSUserDefaults standardUserDefaults]
colorForKey:SKFullScreenBackgroundColorKey];
+ NSDictionary *fullScreenSetup = [[NSUserDefaults standardUserDefaults]
dictionaryForKey:SKDefaultFullScreenPDFDisplaySettingsKey];
+ [pdfView setInteractionMode:SKFullScreenMode];
+ [pdfView setBackgroundColor:backgroundColor];
+ [secondaryPdfView setBackgroundColor:backgroundColor];
+ if ([[pdfView document] isLocked] == NO)
+ [self applyPDFSettings:fullScreenSetup];
+ [self applyLeftSideWidth:0.0 rightSideWidth:0.0];
+ [self forceSubwindowsOnTop:YES];
+ }
+ mwcFlags.isSwitchingFullScreen = 0;
+ mwcFlags.wantsPresentation = 0;
+}
+
#pragma mark Swapping tables
- (void)displayTocViewAnimating:(BOOL)animate {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit