[gtk+] quartz: also update window position on windowDidResize



commit d172f1ce22b8f30ca49c2eeb91c4cd0d8f28733b
Author: Kristian Rietveld <kris lanedo com>
Date:   Sat Oct 8 11:47:11 2011 +0200

    quartz: also update window position on windowDidResize
    
    When a window goes fullscreen, the resize also changes its size.

 gdk/quartz/GdkQuartzNSWindow.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdk/quartz/GdkQuartzNSWindow.c b/gdk/quartz/GdkQuartzNSWindow.c
index ee21797..260323d 100644
--- a/gdk/quartz/GdkQuartzNSWindow.c
+++ b/gdk/quartz/GdkQuartzNSWindow.c
@@ -165,6 +165,11 @@
   window->width = content_rect.size.width;
   window->height = content_rect.size.height;
 
+  /* Certain resize operations (e.g. going fullscreen), also move the
+   * origin of the window.
+   */
+  _gdk_quartz_window_update_position (window);
+
   [[self contentView] setFrame:NSMakeRect (0, 0, window->width, window->height)];
 
   _gdk_window_update_size (window);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]