Revision: 15533 http://sourceforge.net/p/skim-app/code/15533 Author: hofman Date: 2025-06-23 16:38:19 +0000 (Mon, 23 Jun 2025) Log Message: ----------- check for presentation mode and style mask
Modified Paths: -------------- trunk/SKMainWindowController_UI.m Modified: trunk/SKMainWindowController_UI.m =================================================================== --- trunk/SKMainWindowController_UI.m 2025-06-23 16:32:56 UTC (rev 15532) +++ trunk/SKMainWindowController_UI.m 2025-06-23 16:38:19 UTC (rev 15533) @@ -267,10 +267,10 @@ } - (void)windowDidChangeScreen:(NSNotification *)notification { - if ([[notification object] isEqual:[self window]] && ([[notification object] styleMask] & NSWindowStyleMaskTitled) == 0) { + if ([[notification object] isEqual:[self window]] && [self interactionMode] == SKPresentationMode && ([[notification object] styleMask] & NSWindowStyleMaskTitled) == 0) { NSScreen *screen = [[self window] screen]; [[self window] setFrame:[screen frame] display:NO]; - if ([self interactionMode] == SKPresentationMode && sideWindow) { + if (sideWindow) { NSRect screenFrame = [[[self window] screen] frame]; NSRect frame = [sideWindow frame]; frame.origin.x = NSMinX(screenFrame); @@ -283,7 +283,7 @@ } - (void)windowDidMove:(NSNotification *)notification { - if ([[notification object] isEqual:[self window]]) { + if ([[notification object] isEqual:[self window]] && [self interactionMode] == SKPresentationMode && ([[notification object] styleMask] & NSWindowStyleMaskTitled) == 0) { if ([[self window] styleMask] == NSWindowStyleMaskBorderless) { NSScreen *screen = [[self window] screen]; NSRect screenFrame = [screen frame]; @@ -292,7 +292,7 @@ [pdfView layoutDocumentView]; [pdfView setNeedsDisplay:YES]; } - } else if ([self interactionMode] == SKPresentationMode && sideWindow) { + } else if (sideWindow) { NSRect screenFrame = [[[self window] screen] frame]; NSRect frame = [sideWindow frame]; frame.origin.x = NSMinX(screenFrame); 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