forked from AuroraMiddleware/gtk
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:
commit
f972ab8818
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user