Make synchronized_configure work for child windows (used by in-process plugs) and ensures a native window exist

This commit is contained in:
Alexander Larsson 2008-12-04 10:04:05 +01:00 committed by Alexander Larsson
parent 346acdca54
commit 6b1d7fd53d

View File

@ -5758,13 +5758,17 @@ gdk_window_enable_synchronized_configure (GdkWindow *window)
GdkWindowObject *private = (GdkWindowObject *)window;
GdkWindowImplX11 *impl;
if (!WINDOW_IS_TOPLEVEL (window))
if (!GDK_IS_WINDOW_IMPL_X11 (private->impl))
return;
impl = GDK_WINDOW_IMPL_X11 (private->impl);
if (!impl->use_synchronized_configure)
{
/* This basically means you want to do fancy X specific stuff, so
ensure we have a native window */
gdk_window_set_has_native (window, TRUE);
impl->use_synchronized_configure = TRUE;
ensure_sync_counter (window);
}