gtk+ r19446 - in branches/gtk-2-12: . gdk/quartz



Author: rhult
Date: Thu Jan 31 15:20:53 2008
New Revision: 19446
URL: http://svn.gnome.org/viewvc/gtk+?rev=19446&view=rev

Log:
2008-01-31  Richard Hult  <richard imendio com>

	Merge from trunk, except for the reverting since that part wasn't
	applied here yet:

	* gdk/quartz/GdkQuartzView.c: Another attempt at fixing focus
	issues with undecorated windows. Revert the change done on
	2008-01-25 and fix it by using the view's bounds instead. The
	bounds will always be up to date when setting up the tracking
	rect, so this should be more robust.


Modified:
   branches/gtk-2-12/ChangeLog
   branches/gtk-2-12/gdk/quartz/GdkQuartzView.c

Modified: branches/gtk-2-12/gdk/quartz/GdkQuartzView.c
==============================================================================
--- branches/gtk-2-12/gdk/quartz/GdkQuartzView.c	(original)
+++ branches/gtk-2-12/gdk/quartz/GdkQuartzView.c	Thu Jan 31 15:20:53 2008
@@ -141,7 +141,7 @@
    * NSPointInRect ([[self window] convertScreenToBase:[NSEvent mouseLocation]], rect)
    */
 
-  rect = NSMakeRect (0, 0, impl->width, impl->height);
+  rect = [self bounds];
   trackingRect = [self addTrackingRect:rect
                                  owner:self
                               userData:nil



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