]> Pileus Git - ~andy/gtk/commitdiff
quartz: also update window position on windowDidResize
authorKristian Rietveld <kris@lanedo.com>
Sat, 8 Oct 2011 09:47:11 +0000 (11:47 +0200)
committerKristian Rietveld <kris@lanedo.com>
Sat, 8 Oct 2011 09:47:11 +0000 (11:47 +0200)
When a window goes fullscreen, the resize also changes its size.

gdk/quartz/GdkQuartzNSWindow.c

index ee21797383957ddf3a888b0f400c8fd098e4ce27..260323da45d919d4ea7e7f5c040e94ded2842a25 100644 (file)
   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);