x11: Set a transparent background on windows by default

This avoids black flicker on compositing WMs when a window is first shown.
This commit is contained in:
Benjamin Otte 2018-05-04 11:26:15 +02:00
parent 609cb85f3a
commit 2ce63a86ba

View File

@ -1147,6 +1147,9 @@ _gdk_x11_display_create_window_impl (GdkDisplay *display,
if (attributes_mask & GDK_WA_TYPE_HINT)
gdk_window_set_type_hint (window, attributes->type_hint);
if (!window->input_only)
gdk_window_x11_set_background (window, NULL);
gdk_x11_event_source_select_events ((GdkEventSource *) display_x11->event_source,
GDK_WINDOW_XID (window), event_mask,
StructureNotifyMask | PropertyChangeMask);