Merge branch 'plug_race' into 'gtk-3-24'

Fix race in GtkPlug window creation

See merge request GNOME/gtk!387
This commit is contained in:
Timm Bäder 2018-11-08 04:49:25 +00:00
commit f972ab8818

View File

@ -1053,6 +1053,12 @@ _gdk_x11_display_create_window_impl (GdkDisplay *display,
impl->override_redirect = xattributes.override_redirect;
/* This event mask will be set near the end of the function, but to avoid some
* races, the window has to be created with this mask already.
*/
xattributes.event_mask = StructureNotifyMask | PropertyChangeMask;
xattributes_mask |= CWEventMask;
/* Sanity checks */
switch (window->window_type)
{