Make _gdk_x11_window_tmp_unset_parent_bg not change above the toplevel window

This commit is contained in:
Alexander Larsson 2009-01-20 23:31:51 +01:00 committed by Alexander Larsson
parent 905d328933
commit 5fa1855a83

View File

@ -314,8 +314,11 @@ _gdk_x11_window_tmp_unset_parent_bg (GdkWindow *window,
{
GdkWindowObject *private;
private = (GdkWindowObject*) window;
_gdk_x11_window_tmp_unset_bg (_gdk_window_get_impl_window ((GdkWindow *)private->parent),
recurse);
if (GDK_WINDOW_TYPE (private->parent) != GDK_WINDOW_ROOT)
window = _gdk_window_get_impl_window ((GdkWindow *)private->parent);
_gdk_x11_window_tmp_unset_bg (window, recurse);
}
void
@ -355,8 +358,11 @@ _gdk_x11_window_tmp_reset_parent_bg (GdkWindow *window,
{
GdkWindowObject *private;
private = (GdkWindowObject*) window;
_gdk_x11_window_tmp_reset_bg (_gdk_window_get_impl_window ((GdkWindow *)private->parent),
recurse);
if (GDK_WINDOW_TYPE (private->parent) != GDK_WINDOW_ROOT)
window = _gdk_window_get_impl_window ((GdkWindow *)private->parent);
_gdk_x11_window_tmp_reset_bg (window, recurse);
}
static GdkColormap*