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.
This commit is contained in:
Kazuki Sakamoto
2015-10-09 22:51:37 -07:00
parent 1ce1cb48d3
commit 2c51e2ce8d
+18
View File
@@ -1218,6 +1218,24 @@
}
}
- (void)windowDidEnterFullScreen:(NSNotification *)notification
{
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_10_Max) {
// NOTE: On El Capitan, we need to redraw the view when entering
// full-screen using :fullscreen option (including Ctrl-Cmd-f).
[vimController sendMessage:BackingPropertiesChangedMsgID data:nil];
}
}
- (void)windowDidExitFullScreen:(NSNotification *)notification
{
if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_10_Max) {
// NOTE: On El Capitan, we need to redraw the view when leaving
// full-screen by moving the window out from Split View.
[vimController sendMessage:BackingPropertiesChangedMsgID data:nil];
}
}
- (void)windowDidFailToEnterFullScreen:(NSWindow *)window
{
// NOTE: This message can be called without