← Back to team overview

desktop-packages team mailing list archive

[Bug 1436553] Re: Transparent windows render black with Gtk3.16 and compiz

 

Has compiz - 1:0.9.12.1+15.10.20150805-0ubuntu1 been tested with GNOME
apps that use client side decoration, WITHOUT any Ubuntu patches that
remove CSD and restore normal server side decoration and running by
itself without Unity running?

This version does not fix anything for me in gtk3.17 except of course
the Metacity 3.16 or later issue. I tested both Ubuntu's packages and my
custom build in the Debian Unstable that is now my main system with the
same results. I can force popup window transparency in anything I build
myself but this does not help GNOME's CSD applications.

There is a rough workaround that allows use of CSD applications, forces
square corners and you have to align the mouse with a 1px margin to
resize but it works and splits out menu popup windows to get normal
shadows. You do get a shadow around a CSD apps-ouside the black margin.
Setting that to zero means no resize except from the header bar, so it
must be set to 1 and a 1px black border is added to the shadow.

These two sections in a gtk theme will do it, but you still cannot have
round corners:

 .window-frame.csd {
	border-radius: 7px;
	border-width: 2px;
	margin: 1px;
	box-shadow: 0 2px 2px 3px alpha(black, 0.5); 
}

.window-frame, .window-frame.csd.popup,  .window-frame.csd.message-dialog {
	border-radius: 7px;
	border-width: 2px;
	margin: 1px;
	box-shadow: none; 
	/* This shadow will appear on cairo-dock popups if you use it, the workaround
	is to create a file called menu.css in ~/config/cairo-dock/current_theme, copy
	the above lines into it, and change the shadow to all zeroes and an alpha of 0.0 */
}

I will continue to follow and test this but for normal use will keep my
one-off build of the previous version of compiz with the patches that DO
fix all of this.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/1436553

Title:
  Transparent windows render black with Gtk3.16 and compiz

Status in Compiz:
  Fix Committed
Status in compiz package in Ubuntu:
  Fix Released

Bug description:
  Running compiz_1%3a0.9.12.0+15.04.20150202-0ubuntu1 without unity (in
  mate compiled with gtk-3) and testing Gtk-3.16 I run into serious
  issues with failures to render certain Gtk Windows transparent.
  Hardware is AMD FX 8120 with radeon HD 6750 GPU.

  My theme sets popup windows used by menus transparent, and Gtk
  application windows with client side decoration (CSD) have
  transparency underlying the GtkHeaderBar. In the latter case this is
  what makes rounded corners possible.   The transparent popup windows
  used with my theme to support menus resembling gnome-shell's widgets
  in my hacked Gtk3 version of mate-panel work fine with Gtk3.14 but due
  to the window issue get black corners with compiz and Gtk-3.16.
  Windows drawn transparent with cairo still work, but windows set
  transparent by GTK usually do not,

  Changing the window manager to Mutter makes transparency work
  perfectly. In Gtk-3.14 transparency works in Metacity with compositing
  enabled, it does not with gtk-3.16.

  I am not sure whether this should be considered a compiz bug or a Gtk
  bug, but since transparency works fine in gnome-shell and mutter (as
  used by shell), I am not sure the GNOME team would consider this a bug
  they are willing to fix.  If nobody fixes this any GNOME application
  that forces client side decoration (such as the gtk3-demo or gtk3
  -widget-factory) will be ugly in Ubuntu unless the client side
  decorations have square corners.

To manage notifications about this bug go to:
https://bugs.launchpad.net/compiz/+bug/1436553/+subscriptions


References