[gtk+/gtk-2-24-quartz] quartz: also update window position on windowDidResize
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24-quartz] quartz: also update window position on windowDidResize
- Date: Wed, 23 Nov 2011 22:57:11 +0000 (UTC)
commit b5b0204a2b1dea6360c61ae7a9c8d1109235dfaa
Author: Kristian Rietveld <kris lanedo com>
Date: Sat Oct 8 11:23:54 2011 +0200
quartz: also update window position on windowDidResize
When a window goes fullscreen, the resize also changes its size.
gdk/quartz/GdkQuartzWindow.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdk/quartz/GdkQuartzWindow.c b/gdk/quartz/GdkQuartzWindow.c
index 20ed80e..329b3e0 100644
--- a/gdk/quartz/GdkQuartzWindow.c
+++ b/gdk/quartz/GdkQuartzWindow.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]