x11: Make popup surfaces use o-r windows

This is a step towards a full implementation
of popup surfaces for X11.
This commit is contained in:
Matthias Clasen
2019-04-22 15:22:33 +00:00
parent afb8bc6478
commit efff718d4e

View File

@@ -842,7 +842,8 @@ _gdk_x11_display_create_surface (GdkDisplay *display,
xattributes.colormap = gdk_x11_display_get_window_colormap (display_x11);
xattributes_mask |= CWColormap;
if (surface->surface_type == GDK_SURFACE_TEMP)
if (surface->surface_type == GDK_SURFACE_TEMP ||
surface->surface_type == GDK_SURFACE_POPUP)
{
xattributes.save_under = True;
xattributes.override_redirect = True;