Commit 7b8050af authored by Richard Hult's avatar Richard Hult Committed by Richard Hult

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
parent 41e1be54
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment