1 From e7528ab9b8ddbad892d9d5ce323549086897b72a Mon Sep 17 00:00:00 2001
2 From: Lars Uebernickel <lars.uebernickel@canonical.com>
3 Date: Mon, 16 Nov 2015 17:29:50 +0100
4 Subject: [PATCH] gtkwindow: continue calling
5 gtk_style_context_set_background()
7 Not doing so introduces black flicker when creating a new window on
8 compiz, because it lacks support for the frame sync protocol.
10 https://bugzilla.gnome.org/show_bug.cgi?id=748498
12 gtk/gtkwindow.c | 5 +++++
13 1 file changed, 5 insertions(+)
15 --- gtk+-3.24.43/gtk/gtkwindow.c.orig
16 +++ gtk+-3.24.43/gtk/gtkwindow.c
17 @@ -7533,6 +7533,11 @@
18 gtk_widget_register_window (widget, gdk_window);
19 gtk_widget_set_realized (widget, TRUE);
21 + G_GNUC_BEGIN_IGNORE_DEPRECATIONS
22 + if (!gtk_widget_get_app_paintable (widget))
23 + gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window);
24 + G_GNUC_END_IGNORE_DEPRECATIONS
26 attributes.x = allocation.x;
27 attributes.y = allocation.y;
28 attributes.width = allocation.width;