wayland: Make window opacity work

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 28 October 2014 09:28 UTC

Under wayland, the compositor doesn't have a 'overall window alpha' knob, we just need to add the alpha to the buffers we send. Client-side alpha, if you want to call it that.

Implement this by reusing the existing alpha support for non-toplevel widgets. As a side-effect of the implementation, windows with RGBA
visual under X will now also use per-pixel alpha, instead of overall alpha.

4cf6edd wayland: Make window opacity work
gtk/gtkwidget.c | 8 +++++---
gtk/gtkwindow.c | 3 +++
2 files changed, 8 insertions(+), 3 deletions(-)

Upstream: git.gnome.org


  • Share