diff options
author | Benjamin Otte <otte@redhat.com> | 2018-05-04 11:26:15 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-05-04 13:46:46 +0200 |
commit | 2ce63a86ba689aa41eb47409c889c469497478b0 (patch) | |
tree | eab07da1e287c0d56094cd340282825ed3a1db7d | |
parent | 609cb85f3af89c466f7db50b575cbef6bb9b60f8 (diff) | |
download | gtk+-2ce63a86ba689aa41eb47409c889c469497478b0.tar.gz |
x11: Set a transparent background on windows by default
This avoids black flicker on compositing WMs when a window is first shown.
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 70daed9b6d..e484b58253 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -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); |