forked from AuroraMiddleware/gtk
Make this work properly for the root window.
2007-06-30 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (gdk_window_get_origin): Make this work properly for the root window. svn path=/trunk/; revision=18311
This commit is contained in:
parent
8fd51a225e
commit
d793d416da
@ -1,9 +1,14 @@
|
|||||||
|
2007-06-30 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
|
* gdk/quartz/gdkwindow-quartz.c: (gdk_window_get_origin): Make
|
||||||
|
this work properly for the root window.
|
||||||
|
|
||||||
2007-06-30 Richard Hult <richard@imendio.com>
|
2007-06-30 Richard Hult <richard@imendio.com>
|
||||||
|
|
||||||
* gdk/quartz/GdkQuartzView.c: Improve the tracking rect updating:
|
* gdk/quartz/GdkQuartzView.c: Improve the tracking rect updating:
|
||||||
- No need to override setFrame.
|
- No need to override setFrame.
|
||||||
- Use our own size instead of the bounds from for the view as it's
|
- Use our own size instead of the bounds from the view as it's not
|
||||||
not always updated before the tracking rect.
|
always updated before the tracking rect.
|
||||||
- Only reset the tracking rect if the new window is nil).
|
- Only reset the tracking rect if the new window is nil).
|
||||||
|
|
||||||
* gdk/quartz/GdkQuartzWindow.c: Update the bounds of the content
|
* gdk/quartz/GdkQuartzWindow.c: Update the bounds of the content
|
||||||
|
@ -1208,6 +1208,13 @@ gdk_window_get_origin (GdkWindow *window,
|
|||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window == _gdk_root)
|
||||||
|
{
|
||||||
|
*x = 0;
|
||||||
|
*y = 0;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
private = GDK_WINDOW_OBJECT (window);
|
private = GDK_WINDOW_OBJECT (window);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user