summaryrefslogtreecommitdiff
path: root/gdk/quartz/GdkQuartzView.c
diff options
context:
space:
mode:
authorRichard Hult <richard@imendio.com>2008-01-31 14:05:47 +0000
committerRichard Hult <rhult@src.gnome.org>2008-01-31 14:05:47 +0000
commit0ca4891ee093cc6ad4248a70397c93e940059e5c (patch)
tree37cd4f48d749690ab8d986d940078cfb537e1846 /gdk/quartz/GdkQuartzView.c
parentcfd8812663bfaadf89f5e166f086d3bfe3124c1b (diff)
downloadgtk+-0ca4891ee093cc6ad4248a70397c93e940059e5c.tar.gz
Another attempt at fixing focus issues with undecorated windows. Revert
2008-01-31 Richard Hult <richard@imendio.com> * 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. svn path=/trunk/; revision=19445
Diffstat (limited to 'gdk/quartz/GdkQuartzView.c')
-rw-r--r--gdk/quartz/GdkQuartzView.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c
index cabbcbe5ad..7395a8cceb 100644
--- a/gdk/quartz/GdkQuartzView.c
+++ b/gdk/quartz/GdkQuartzView.c
@@ -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
@@ -167,22 +167,8 @@
-(void)setBounds:(NSRect)bounds
{
- NSRect old_bounds;
- gboolean changed = FALSE;
-
- old_bounds = [self bounds];
- if (old_bounds.origin.x != bounds.origin.x ||
- old_bounds.origin.y != bounds.origin.y ||
- old_bounds.size.width != bounds.size.width ||
- old_bounds.size.height != bounds.size.height)
- {
- changed = TRUE;
- }
-
[super setBounds:bounds];
-
- if (changed)
- [self updateTrackingRect];
+ [self updateTrackingRect];
}
@end