Shaun Dennie wrote:
Hello,

I've only been watching this list for about a week so, I apologize if this
is not the right place to post this:

Yes, this is the right place.

The version of GTK3 in the current
stable BLFS book (and, indeed, even later revisions of GTK+-3.18) has a
subtle bug where windows will flash black before appearing.  It's a
harmless bug but it's so jarring that, when you see it, you immediately
start investigating the issue.  There is a very trivial patch from Ubuntu
that I'm posting and I think could save people a lot of time investigating
the cause of the frustrating behavior.  It's purpose is very obvious and
it applies cleanly to the BLFS version of GTK3 and later revisions of
3.18.  I've tried it on XFCE with and without compositing enabled and it
fixes the issue.

     Shaun

 From 7bb940fd507ae31e5a06509b1833dd7134ff8b4e Mon Sep 17 00:00:00 2001
From: Lars Uebernickel <[email protected]>
Date: Tue, 24 Nov 2015 12:08:46 +0100
Subject: [PATCH] gtkwindow: set transparent background color

To reduce black flickering when new windows are created on compiz.
---
  gtk/gtkwindow.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2d9f4b5..460a199 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7122,6 +7122,9 @@ gtk_window_realize (GtkWidget *widget)
    gtk_widget_register_window (widget, gdk_window);
    gtk_widget_set_realized (widget, TRUE);

+  GdkRGBA transparent = { 1.0, 1.0, 1.0, 0.0 };
+  gdk_window_set_background_rgba (gdk_window, &transparent);
+
    attributes.x = allocation.x;
    attributes.y = allocation.y;
    attributes.width = allocation.width;

Wouldn't it be easier to update to gtk+-3.20.4? (3.20.5 is pending). However it may require some other updates.

Note that we only add errata to the web site. We do not change released versions of LFS/BLFS.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to