Revision: 15279
http://sourceforge.net/p/skim-app/code/15279
Author: hofman
Date: 2025-05-25 08:37:36 +0000 (Sun, 25 May 2025)
Log Message:
-----------
Force presentation window to high level more often to bbe sure. Make sure we
don't move the normal window to a high level, for instance during presentation
switching.
Modified Paths:
--------------
trunk/SKMainWindowController_FullScreen.m
trunk/SKMainWindowController_UI.m
Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m 2025-05-24 21:49:45 UTC (rev
15278)
+++ trunk/SKMainWindowController_FullScreen.m 2025-05-25 08:37:36 UTC (rev
15279)
@@ -277,8 +277,8 @@
[self setWindow:presentationWindow];
+ [presentationWindow setDelegate:self];
[presentationWindow setLevel:NSPopUpMenuWindowLevel];
- [presentationWindow setDelegate:self];
// prevent sleep
if (activity == nil)
@@ -307,8 +307,7 @@
if ([self hasOverview])
[self hideOverviewAnimating:NO];
- if ([[NSUserDefaults standardUserDefaults]
boolForKey:SKUseNormalLevelForPresentationKey])
- [presentationWindow setLevel:NSNormalWindowLevel];
+ [presentationWindow setLevel:[[NSUserDefaults
standardUserDefaults] boolForKey:SKUseNormalLevelForPresentationKey] ?
NSNormalWindowLevel : NSPopUpMenuWindowLevel];
[presentationWindow makeKeyAndOrderFront:nil];
[NSApp addWindowsItem:presentationWindow title:[self
windowTitleForDocumentDisplayName:[[self document] displayName]] filename:NO];
if ([[NSUserDefaults standardUserDefaults]
boolForKey:SKResizablePresentationKey]) {
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2025-05-24 21:49:45 UTC (rev 15278)
+++ trunk/SKMainWindowController_UI.m 2025-05-25 08:37:36 UTC (rev 15279)
@@ -240,7 +240,7 @@
- (void)windowDidBecomeMain:(NSNotification *)notification {
if ([[self window] isEqual:[notification object]]) {
[self updateUtilityPanel];
- if ([self interactionMode] == SKPresentationMode && [NSApp isActive]
&& [[NSUserDefaults standardUserDefaults]
boolForKey:SKUseNormalLevelForPresentationKey] == NO)
+ if ([self interactionMode] == SKPresentationMode && [NSApp isActive]
&& [[NSUserDefaults standardUserDefaults]
boolForKey:SKUseNormalLevelForPresentationKey] == NO && [[self window]
isEqual:mainWindow] == NO)
[[self window] setLevel:NSPopUpMenuWindowLevel];
}
}
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