quartz: also update window position on windowDidResize

When a window goes fullscreen, the resize also changes its size.
This commit is contained in:
Kristian Rietveld 2011-10-08 11:23:54 +02:00
parent 21e971b3cb
commit b3314acd97

View File

@ -166,6 +166,11 @@
private->width = content_rect.size.width;
private->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, private->width, private->height)];
_gdk_window_update_size (window);