forked from AuroraMiddleware/gtk
quartz: also update window position on windowDidResize
When a window goes fullscreen, the resize also changes its size.
This commit is contained in:
parent
1feb672f8c
commit
d172f1ce22
@ -165,6 +165,11 @@
|
|||||||
window->width = content_rect.size.width;
|
window->width = content_rect.size.width;
|
||||||
window->height = content_rect.size.height;
|
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)];
|
[[self contentView] setFrame:NSMakeRect (0, 0, window->width, window->height)];
|
||||||
|
|
||||||
_gdk_window_update_size (window);
|
_gdk_window_update_size (window);
|
||||||
|
Loading…
Reference in New Issue
Block a user