Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP1
gtk3
gtk3-x11-set-transparent-background.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gtk3-x11-set-transparent-background.patch of Package gtk3
From 2ce63a86ba689aa41eb47409c889c469497478b0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte <otte@redhat.com> Date: Fri, 4 May 2018 11:26:15 +0200 Subject: [PATCH] x11: Set a transparent background on windows by default This avoids black flicker on compositing WMs when a window is first shown. --- gdk/x11/gdkwindow-x11.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.20.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor