[gtk+/client-side-windows: 152/284] Only setup tracking rect for toplevels, we only want enter/leave for those



commit f12a992be26ecf59f8a171b99e02daac4d1775d0
Author: Richard Hult <richard imendio com>
Date:   Tue Jan 20 14:06:39 2009 +0100

    Only setup tracking rect for toplevels, we only want enter/leave for those
---
 gdk/quartz/GdkQuartzView.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c
index 3cc0f2e..35209e3 100644
--- a/gdk/quartz/GdkQuartzView.c
+++ b/gdk/quartz/GdkQuartzView.c
@@ -133,6 +133,9 @@
   GdkWindowImplQuartz *impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
   NSRect rect;
 
+  if (!impl->toplevel)
+    return;
+
   if (trackingRect)
     {
       [self removeTrackingRect:trackingRect];



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]