Bug 667691 - implement gdk_window_restack() for Quartz

Apply patch from Paul Davis which implements this missing function.
(cherry picked from commit 5f48cfe491)
This commit is contained in:
Michael Natterer 2012-01-26 10:11:17 +01:00 committed by Michael Natterer
parent d915d17ff6
commit e1c107a094

View File

@ -1630,7 +1630,18 @@ gdk_window_quartz_restack_toplevel (GdkWindow *window,
GdkWindow *sibling,
gboolean above)
{
/* FIXME: Implement this */
GdkWindowImplQuartz *impl;
gint sibling_num;
impl = GDK_WINDOW_IMPL_QUARTZ (sibling->impl);
sibling_num = [impl->toplevel windowNumber];
impl = GDK_WINDOW_IMPL_QUARTZ (window->impl);
if (above)
[impl->toplevel orderWindow:NSWindowAbove relativeTo:sibling_num];
else
[impl->toplevel orderWindow:NSWindowBelow relativeTo:sibling_num];
}
static void