mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Make synchronized_configure work for child windows (used by in-process plugs) and ensures a native window exist
This commit is contained in:
parent
346acdca54
commit
6b1d7fd53d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user