mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user