From 57247ff88228fac26d936c024b776a791761d18d Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Tue, 24 Jun 2008 20:52:01 +0200 Subject: [PATCH] Don't respond to SetWindowTitleMsgID message in live resize Responding to these messages would clobber the text dimension title that is set during live resize. --- src/MacVim/MMVimController.m | 6 +++++- src/MacVim/MMWindowController.m | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/MacVim/MMVimController.m b/src/MacVim/MMVimController.m index b053a567bd..130a5104d4 100644 --- a/src/MacVim/MMVimController.m +++ b/src/MacVim/MMVimController.m @@ -682,7 +682,11 @@ static BOOL isUnsafeMessage(int msgid); NSString *string = [[NSString alloc] initWithBytes:(void*)bytes length:len encoding:NSUTF8StringEncoding]; - [windowController setTitle:string]; + // While in live resize the window title displays the dimensions of the + // window so don't clobber this with a spurious "set title" message + // from Vim. + if (![[windowController vimView] inLiveResize]) + [windowController setTitle:string]; [string release]; } else if (SetDocumentFilenameMsgID == msgid) { diff --git a/src/MacVim/MMWindowController.m b/src/MacVim/MMWindowController.m index dbc1aa8b24..169fb284d0 100644 --- a/src/MacVim/MMWindowController.m +++ b/src/MacVim/MMWindowController.m @@ -308,10 +308,8 @@ - (void)setTitle:(NSString *)title { - if (title) { + if (title) [decoratedWindow setTitle:title]; - [fullscreenWindow setTitle:title]; - } } - (void)setDocumentFilename:(NSString *)filename