summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hult <richard@imendio.com>2007-06-06 09:06:59 +0000
committerRichard Hult <rhult@src.gnome.org>2007-06-06 09:06:59 +0000
commit726c23e20f142757079daab5015f55ef21847eca (patch)
tree137c9904c034ca08902c020800e19eb608d85424
parent1598526f5cabde67125b7867a062eeca599a5a84 (diff)
downloadgdk-pixbuf-726c23e20f142757079daab5015f55ef21847eca.tar.gz
Ignore if the old and new windows are the same.
2007-06-06 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c (_gdk_quartz_events_update_mouse_window): Ignore if the old and new windows are the same. svn path=/trunk/; revision=18049
-rw-r--r--ChangeLog6
-rw-r--r--gdk/quartz/gdkevents-quartz.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 435fabf7d..e08ccdfe4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-06 Richard Hult <richard@imendio.com>
+
+ * gdk/quartz/gdkevents-quartz.c
+ (_gdk_quartz_events_update_mouse_window): Ignore if the old and new
+ windows are the same.
+
2007-06-06 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_unrealize): also remove the
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index fc0335fd9..ae58307b7 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -802,6 +802,9 @@ _gdk_quartz_events_get_mouse_window (void)
void
_gdk_quartz_events_update_mouse_window (GdkWindow *window)
{
+ if (window == current_mouse_window)
+ return;
+
if (window)
g_object_ref (window);
if (current_mouse_window)