Ensure native window if composite requested

This commit is contained in:
Alexander Larsson 2008-12-08 12:51:19 +01:00 committed by Alexander Larsson
parent a9ca08f6eb
commit 191e8d1587

View File

@ -6200,6 +6200,9 @@ gdk_window_set_composited (GdkWindow *window,
if (private->composited == composited)
return;
if (composited)
gdk_window_set_has_native (window, TRUE);
display = gdk_drawable_get_display (GDK_DRAWABLE (window));
if (!gdk_display_supports_composite (display) && composited)