Merge lp:~larsu/gtk/remove-black-flicker into lp:~ubuntu-desktop/gtk/ubuntugtk3

Proposed by Lars Karlitski
Status: Merged
Merged at revision: 486
Proposed branch: lp:~larsu/gtk/remove-black-flicker
Merge into: lp:~ubuntu-desktop/gtk/ubuntugtk3
Diff against target: 61 lines (+41/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/0001-gtkwindow-continue-calling-gtk_style_context_set_bac.patch (+33/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~larsu/gtk/remove-black-flicker
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+277595@code.launchpad.net

Commit message

* Add debian/patches/0001-gtkwindow-continue-calling-gtk_style_context_set_bac.patch:
  - fixes black flickering when new windows are created

Description of the change

* Add debian/patches/0001-gtkwindow-continue-calling-gtk_style_context_set_bac.patch:
  - fixes black flickering when new windows are created

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2015-11-13 13:40:07 +0000
+++ debian/changelog 2015-11-16 16:36:54 +0000
@@ -1,3 +1,10 @@
1gtk+3.0 (3.18.4-1ubuntu2) UNRELEASED; urgency=medium
2
3 * Add debian/patches/0001-gtkwindow-continue-calling-gtk_style_context_set_bac.patch:
4 - fixes black flickering when new windows are created
5
6 -- Lars Uebernickel <lars.uebernickel@ubuntu.com> Mon, 16 Nov 2015 17:34:30 +0100
7
1gtk+3.0 (3.18.4-1ubuntu1) xenial; urgency=medium8gtk+3.0 (3.18.4-1ubuntu1) xenial; urgency=medium
29
3 * Merge with Debian. Remaining changes:10 * Merge with Debian. Remaining changes:
411
=== added file 'debian/patches/0001-gtkwindow-continue-calling-gtk_style_context_set_bac.patch'
--- debian/patches/0001-gtkwindow-continue-calling-gtk_style_context_set_bac.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/0001-gtkwindow-continue-calling-gtk_style_context_set_bac.patch 2015-11-16 16:36:54 +0000
@@ -0,0 +1,33 @@
1From e7528ab9b8ddbad892d9d5ce323549086897b72a Mon Sep 17 00:00:00 2001
2From: Lars Uebernickel <lars.uebernickel@canonical.com>
3Date: Mon, 16 Nov 2015 17:29:50 +0100
4Subject: [PATCH] gtkwindow: continue calling
5 gtk_style_context_set_background()
6
7Not doing so introduces black flicker when creating a new window on
8compiz, because it lacks support for the frame sync protocol.
9
10https://bugzilla.gnome.org/show_bug.cgi?id=748498
11---
12 gtk/gtkwindow.c | 5 +++++
13 1 file changed, 5 insertions(+)
14
15diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
16index 2d9f4b5..0476b6b 100644
17--- a/gtk/gtkwindow.c
18+++ b/gtk/gtkwindow.c
19@@ -7122,6 +7122,11 @@ gtk_window_realize (GtkWidget *widget)
20 gtk_widget_register_window (widget, gdk_window);
21 gtk_widget_set_realized (widget, TRUE);
22
23+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
24+ if (!gtk_widget_get_app_paintable (widget))
25+ gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window);
26+ G_GNUC_END_IGNORE_DEPRECATIONS
27+
28 attributes.x = allocation.x;
29 attributes.y = allocation.y;
30 attributes.width = allocation.width;
31--
322.6.2
33
034
=== modified file 'debian/patches/series'
--- debian/patches/series 2015-11-12 18:03:04 +0000
+++ debian/patches/series 2015-11-16 16:36:54 +0000
@@ -23,3 +23,4 @@
23git_icon_fallback.patch23git_icon_fallback.patch
24unity_rbga_tooltips.patch24unity_rbga_tooltips.patch
25git-refresh-mir-backend.patch25git-refresh-mir-backend.patch
260001-gtkwindow-continue-calling-gtk_style_context_set_bac.patch

Subscribers

People subscribed via source and target branches

to all changes: