Loading ...
Sorry, an error occurred while loading the content.

[PATCH] fix a hack

Expand Messages
  • Nicolas Weber
    ... src/MacVim/MMFullscreenWindow.m | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/MacVim/MMFullscreenWindow.m
    Message 1 of 1 , Oct 30, 2007
    • 0 Attachment
      ---
      src/MacVim/MMFullscreenWindow.m | 12 ++++++++----
      1 files changed, 8 insertions(+), 4 deletions(-)

      diff --git a/src/MacVim/MMFullscreenWindow.m b/src/MacVim/MMFullscreenWindow.m
      index ed0dab9..35a90e7 100644
      --- a/src/MacVim/MMFullscreenWindow.m
      +++ b/src/MacVim/MMFullscreenWindow.m
      @@ -243,10 +243,14 @@
      {
      //return [target contentRectForFrameRect:rect];

      - // EVIL HACK: this is always called with [[self window] frame] as argument
      - // from MMWindowController. We can't let frame return the frame of target,
      - // so "fix" this here.
      - return [target contentRectForFrameRect:[target frame]];
      + // EVIL HACK: if this is always called with [[self window] frame] as
      + // argument from MMWindowController, we can't let frame return the frame
      + // of target so "fix" this here.
      + if (NSEqualRects([self frame], rect)) {
      + return [target contentRectForFrameRect:[target frame]];
      + } else {
      + return [target contentRectForFrameRect:rect];
      + }
      }

      - (NSRect)frameRectForContentRect:(NSRect)contentRect
      --
      1.5.3.4


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.