Don't recreate a tracking rect if it didn't change, fixes focus event
2008-01-25 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzView.c: Don't recreate a tracking rect if it didn't change, fixes focus event issues for undecorated windows. svn path=/trunk/; revision=19402
This commit is contained in:
committed by
Richard Hult
parent
41e1be54e8
commit
7b8050aff2
@@ -1,3 +1,8 @@
|
||||
2008-01-25 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/GdkQuartzView.c: Don't recreate a tracking rect if it
|
||||
didn't change, fixes focus event issues for undecorated windows.
|
||||
|
||||
2008-01-25 Richard Hult <richard@imendio.com>
|
||||
|
||||
* gdk/quartz/gdkwindow-quartz.c: Fix compile warnings (add missing
|
||||
|
||||
@@ -167,8 +167,22 @@
|
||||
|
||||
-(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];
|
||||
[self updateTrackingRect];
|
||||
|
||||
if (changed)
|
||||
[self updateTrackingRect];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user