Revision: 15532
http://sourceforge.net/p/skim-app/code/15532
Author: hofman
Date: 2025-06-23 16:32:56 +0000 (Mon, 23 Jun 2025)
Log Message:
-----------
combine conditions
Modified Paths:
--------------
trunk/SKMainWindowController_UI.m
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2025-06-23 16:21:27 UTC (rev 15531)
+++ trunk/SKMainWindowController_UI.m 2025-06-23 16:32:56 UTC (rev 15532)
@@ -283,16 +283,16 @@
}
- (void)windowDidMove:(NSNotification *)notification {
- if ([[notification object] isEqual:[self window]] && [[self window]
styleMask] == NSWindowStyleMaskBorderless) {
- NSScreen *screen = [[self window] screen];
- NSRect screenFrame = [screen frame];
- if (NSEqualRects(screenFrame, [[self window] frame]) == NO) {
- [[self window] setFrame:screenFrame display:NO];
- [pdfView layoutDocumentView];
- [pdfView setNeedsDisplay:YES];
- }
- } else if ([[notification object] isEqual:[self window]] && [self
interactionMode] == SKPresentationMode) {
- if (sideWindow) {
+ if ([[notification object] isEqual:[self window]]) {
+ if ([[self window] styleMask] == NSWindowStyleMaskBorderless) {
+ NSScreen *screen = [[self window] screen];
+ NSRect screenFrame = [screen frame];
+ if (NSEqualRects(screenFrame, [[self window] frame]) == NO) {
+ [[self window] setFrame:screenFrame display:NO];
+ [pdfView layoutDocumentView];
+ [pdfView setNeedsDisplay:YES];
+ }
+ } else if ([self interactionMode] == SKPresentationMode && sideWindow)
{
NSRect screenFrame = [[[self window] screen] frame];
NSRect frame = [sideWindow frame];
frame.origin.x = NSMinX(screenFrame);
@@ -303,7 +303,7 @@
}
- (void)windowDidChangeBackingProperties:(NSNotification *)notification {
- if (0 != ([[notification object] styleMask] & NSWindowStyleMaskTitled)) {
+ if ([[notification object] isEqual:[self window]] && 0 != ([[notification
object] styleMask] & NSWindowStyleMaskTitled)) {
CGFloat oldScale = [[[notification userInfo]
objectForKey:@"NSBackingPropertyOldScaleFactorKey"] doubleValue];
if (fabs(oldScale - [[self window] backingScaleFactor]) > 0.0) {
[self allThumbnailsNeedUpdate];
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