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
This commit is contained in:
Richard Hult 2007-06-06 09:06:59 +00:00 committed by Richard Hult
parent 1598526f5c
commit 726c23e20f
2 changed files with 9 additions and 0 deletions

View File

@ -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> 2007-06-06 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_unrealize): also remove the * gtk/gtktreeview.c (gtk_tree_view_unrealize): also remove the

View File

@ -802,6 +802,9 @@ _gdk_quartz_events_get_mouse_window (void)
void void
_gdk_quartz_events_update_mouse_window (GdkWindow *window) _gdk_quartz_events_update_mouse_window (GdkWindow *window)
{ {
if (window == current_mouse_window)
return;
if (window) if (window)
g_object_ref (window); g_object_ref (window);
if (current_mouse_window) if (current_mouse_window)