Index: Source/NSView.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSView.m,v
retrieving revision 1.202
diff -c -r1.202 NSView.m
*** Source/NSView.m	30 Jan 2003 04:25:42 -0000	1.202
--- Source/NSView.m	17 Feb 2003 22:07:29 -0000
***************
*** 1828,1833 ****
--- 1828,1834 ----
        NSRect	neededRect;
        NSRect	redrawRect;
  
+       [_window disableFlushWindow];
        if (_coordinates_valid == NO)
  	{
  	  [self _rebuildCoordinates];
***************
*** 1919,1925 ****
  	{
  	  _rFlags.needs_display = NO;
  	}
!       [_window flushWindow];
      }
  }
  
--- 1920,1927 ----
  	{
  	  _rFlags.needs_display = NO;
  	}
!       [_window enableFlushWindow];
!       [_window flushWindowIfNeeded];
      }
  }
  
***************
*** 1952,1957 ****
--- 1954,1961 ----
      {
        return;
      }
+ 
+   [_window disableFlushWindow];
    if (_coordinates_valid == NO)
      {
        [self _rebuildCoordinates];
***************
*** 2045,2051 ****
      {
        _rFlags.needs_display = NO;
      }
!   [_window flushWindow];
  }
  
  /**
--- 2049,2056 ----
      {
        _rFlags.needs_display = NO;
      }
!   [_window enableFlushWindow];
!   [_window flushWindowIfNeeded];
  }
  
  /**
Index: Source/NSWindow.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSWindow.m,v
retrieving revision 1.265
diff -c -r1.265 NSWindow.m
*** Source/NSWindow.m	10 Feb 2003 14:29:31 -0000	1.265
--- Source/NSWindow.m	17 Feb 2003 22:07:29 -0000
***************
*** 1806,1815 ****
     */
    [_firstResponder becomeFirstResponder];
  
-   [self disableFlushWindow];
    [_wv display];
-   [self enableFlushWindow];
-   [self flushWindowIfNeeded];
    [self discardCachedImage];
  }
  
--- 1806,1812 ----
***************
*** 1829,1840 ****
     */
    if (_f.is_autodisplay && _rFlags.needs_display)
      {
-       [self disableFlushWindow];
        [self displayIfNeeded];
-       [self enableFlushWindow];
-       [self flushWindowIfNeeded];
      }
-   [GSCurrentContext() flushGraphics];
    [nc postNotificationName: NSWindowDidUpdateNotification object: self];
  }
  
--- 1826,1833 ----
***************
*** 1842,1848 ****
  {
    if (_disableFlushWindow == 0 && _f.needs_flush == YES)
      {
-       _f.needs_flush = NO;
        [self flushWindow];
      }
  }
--- 1835,1840 ----
