Revision: 15330 http://sourceforge.net/p/skim-app/code/15330 Author: hofman Date: 2025-05-30 13:56:30 +0000 (Fri, 30 May 2025) Log Message: ----------- do not make side window subclass of SKMainWindow
Modified Paths: -------------- trunk/SKSideWindow.h trunk/SKSideWindow.m Modified: trunk/SKSideWindow.h =================================================================== --- trunk/SKSideWindow.h 2025-05-30 09:20:18 UTC (rev 15329) +++ trunk/SKSideWindow.h 2025-05-30 13:56:30 UTC (rev 15330) @@ -37,11 +37,10 @@ */ #import <Cocoa/Cocoa.h> -#import "SKMainWindow.h" NS_ASSUME_NONNULL_BEGIN -@interface SKSideWindow : SKMainWindow { +@interface SKSideWindow : NSWindow { NSView *mainContentView; BOOL resizing; } Modified: trunk/SKSideWindow.m =================================================================== --- trunk/SKSideWindow.m 2025-05-30 09:20:18 UTC (rev 15329) +++ trunk/SKSideWindow.m 2025-05-30 13:56:30 UTC (rev 15330) @@ -45,6 +45,7 @@ #import "NSView_SKExtensions.h" #import "NSImage_SKExtensions.h" #import "SKMainWindowController_Actions.h" +#import "SKImageToolTipWindow.h" #define DEFAULT_WINDOW_WIDTH 300.0 #define DEFAULT_WINDOW_HEIGHT 400.0 @@ -115,6 +116,11 @@ - (BOOL)canBecomeKeyWindow { return YES; } +- (void)resignKeyWindow { + [[SKImageToolTipWindow sharedToolTipWindow] orderOut:nil]; + [super resignKeyWindow]; +} + - (void)attachToWindow:(NSWindow *)window { NSRect frame; NSRect screenFrame = [[window screen] frame]; 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