Revision: 15518 http://sourceforge.net/p/skim-app/code/15518 Author: hofman Date: 2025-06-21 21:22:55 +0000 (Sat, 21 Jun 2025) Log Message: ----------- don't change window level of presentation window when the app becomes or resigns active, it will happen when the window becomes or resigns main
Modified Paths: -------------- trunk/SKMainWindowController_UI.m Modified: trunk/SKMainWindowController_UI.m =================================================================== --- trunk/SKMainWindowController_UI.m 2025-06-21 21:17:24 UTC (rev 15517) +++ trunk/SKMainWindowController_UI.m 2025-06-21 21:22:55 UTC (rev 15518) @@ -2035,18 +2035,6 @@ [self exitPresentation]; } -- (void)handleApplicationDidResignActiveNotification:(NSNotification *)notification { - if ([self interactionMode] == SKPresentationMode && [[NSUserDefaults standardUserDefaults] boolForKey:SKUseNormalLevelForPresentationKey] == NO) { - [[self window] setLevel:NSNormalWindowLevel]; - } -} - -- (void)handleApplicationWillBecomeActiveNotification:(NSNotification *)notification { - if ([self interactionMode] == SKPresentationMode && [[NSUserDefaults standardUserDefaults] boolForKey:SKUseNormalLevelForPresentationKey] == NO) { - [[self window] setLevel:NSPopUpMenuWindowLevel]; - } -} - - (void)setHasOutline:(BOOL)hasOutline forAnnotation:(PDFAnnotation *)annotation { SKNoteOutlineView *ov = rightSideController.noteOutlineView; NSInteger row = [ov rowForItem:annotation]; @@ -2119,12 +2107,8 @@ - (void)registerForNotifications { NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; // Application - [nc addObserver:self selector:@selector(handleApplicationStartsTerminatingNotification:) + [nc addObserver:self selector:@selector(handleApplicationStartsTerminatingNotification:) name:SKApplicationStartsTerminatingNotification object:NSApp]; - [nc addObserver:self selector:@selector(handleApplicationDidResignActiveNotification:) - name:NSApplicationDidResignActiveNotification object:NSApp]; - [nc addObserver:self selector:@selector(handleApplicationWillBecomeActiveNotification:) - name:NSApplicationWillBecomeActiveNotification object:NSApp]; // PDFView [nc addObserver:self selector:@selector(handlePageChangedNotification:) name:PDFViewPageChangedNotification object:pdfView]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit