Skip to content

Commit 1ce1cb4

Browse files
committed
Fix rendering issue in Split View on El Capitan
1 parent 5b2209b commit 1ce1cb4

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/MacVim/MMWindowController.m

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,13 +1021,19 @@ - (void)windowDidMove:(NSNotification *)notification
10211021

10221022
- (void)windowDidResize:(id)sender
10231023
{
1024-
if (resizingDueToMove)
1025-
{
1024+
if (resizingDueToMove) {
10261025
resizingDueToMove = NO;
10271026
return;
10281027
}
10291028

1030-
if (!setupDone || fullScreenEnabled) return;
1029+
if (!setupDone)
1030+
return;
1031+
1032+
// NOTE: We need to update the window frame size for Split View even though
1033+
// in full-screen on El Capitan or later.
1034+
if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_10_Max
1035+
&& fullScreenEnabled)
1036+
return;
10311037

10321038
// NOTE: Since we have no control over when the window may resize (Cocoa
10331039
// may resize automatically) we simply set the view to fill the entire

0 commit comments

Comments
 (0)