summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hult <richard@imendio.com>2007-10-08 17:37:44 +0000
committerRichard Hult <rhult@src.gnome.org>2007-10-08 17:37:44 +0000
commitba05b365638cf1f80362a3bd0e588c414a197274 (patch)
tree638c785a47719edd392feb9a941fac4cb42de791
parent7d9ac29c93e5e6c9e7ef4912346b5f1c3ed3fd7b (diff)
downloadgdk-pixbuf-ba05b365638cf1f80362a3bd0e588c414a197274.tar.gz
Ignore if there are no changes, fixes bug #467269. Patch from Jonathan
2007-10-08 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal): Ignore if there are no changes, fixes bug #467269. Patch from Jonathan Dempsey. svn path=/trunk/; revision=18896
-rw-r--r--ChangeLog6
-rw-r--r--gdk/quartz/gdkwindow-quartz.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bcc8a47d9..c2a21c3c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
2007-10-08 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
+ Ignore if there are no changes, fixes bug #467269. Patch from
+ Jonathan Dempsey.
+
+2007-10-08 Richard Hult <richard@imendio.com>
+
+ * gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal):
Patch from Paul Davis to implement this in terms of scrollRect,
fixes bug #478377.
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 40a8bf918..fa7a752db 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -1075,6 +1075,14 @@ move_resize_window_internal (GdkWindow *window,
impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
+ if ((x == private->x) &&
+ (y == private->y) &&
+ (width == impl->width) &&
+ (height == impl->height))
+ {
+ return;
+ }
+
if (!impl->toplevel)
{
/* The previously visible area of this window in a coordinate