Skip to content

Commit 4abe56e

Browse files
committed
Fix non-native fullscreen quit to black screen bug
A previous change #1510 introduced a piece of debug code that erroneously overrode the `window` property to always return the normal window whereas in normal behavior it should return the full screen window when in non-native full screen. This property was only added for supporting unit tests and also completely unnecessary because the superclass `NSWindowController` already provides it (the one that we accidentally overrode). Just remove this. Fix #1515
1 parent 030e05d commit 4abe56e

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/MacVim/MMWindowController.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
- (id)initWithVimController:(MMVimController *)controller;
5959
- (MMVimController *)vimController;
6060
- (MMVimView *)vimView;
61-
- (NSWindow *)window;
6261
- (NSString *)windowAutosaveKey;
6362
- (void)setWindowAutosaveKey:(NSString *)key;
6463
- (void)cleanup;

src/MacVim/MMWindowController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,6 @@ - (MMVimView *)vimView
291291
return vimView;
292292
}
293293

294-
- (NSWindow *)window
295-
{
296-
return decoratedWindow;
297-
}
298-
299294
- (NSString *)windowAutosaveKey
300295
{
301296
return windowAutosaveKey;

0 commit comments

Comments
 (0)