forked from AuroraMiddleware/gtk
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:
parent
d915d17ff6
commit
e1c107a094
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user