Skip to content

Commit 2c51e2c

Browse files
committed
Fix full-screen redraw issues on El Capitan
On El Capitan, we need to redraw the view when entering full-screen using :fullscreen option (including Ctrl-Cmd-f), and leaving full-screen by moving the window out from Split View.
1 parent 1ce1cb4 commit 2c51e2c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/MacVim/MMWindowController.m

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,24 @@ - (void)windowWillEnterFullScreen:(NSNotification *)notification
12181218
}
12191219
}
12201220

1221+
- (void)windowDidEnterFullScreen:(NSNotification *)notification
1222+
{
1223+
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_10_Max) {
1224+
// NOTE: On El Capitan, we need to redraw the view when entering
1225+
// full-screen using :fullscreen option (including Ctrl-Cmd-f).
1226+
[vimController sendMessage:BackingPropertiesChangedMsgID data:nil];
1227+
}
1228+
}
1229+
1230+
- (void)windowDidExitFullScreen:(NSNotification *)notification
1231+
{
1232+
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_10_Max) {
1233+
// NOTE: On El Capitan, we need to redraw the view when leaving
1234+
// full-screen by moving the window out from Split View.
1235+
[vimController sendMessage:BackingPropertiesChangedMsgID data:nil];
1236+
}
1237+
}
1238+
12211239
- (void)windowDidFailToEnterFullScreen:(NSWindow *)window
12221240
{
12231241
// NOTE: This message can be called without

0 commit comments

Comments
 (0)