After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696370 - GtkOverlay doesn't work on top of GtkClutterEmbed
GtkOverlay doesn't work on top of GtkClutterEmbed
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-03-22 09:38 UTC by Bastien Nocera
Modified: 2013-03-27 11:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for clutter-gtk (1.29 KB, patch)
2013-03-22 09:38 UTC, Bastien Nocera
none Details | Review
gdkwindow: Apply layered areas to the shape for native windows (2.04 KB, patch)
2013-03-27 10:53 UTC, Alexander Larsson
committed Details | Review

Description Bastien Nocera 2013-03-22 09:38:32 UTC
Created attachment 239520 [details] [review]
patch for clutter-gtk

The attached patch on top of clutter-gtk's examples/gtk-clutter-test doesn't work. It should show an image on top of the clutter stage.
Comment 1 Alexander Larsson 2013-03-27 10:53:40 UTC
Created attachment 239938 [details] [review]
gdkwindow: Apply layered areas to the shape for native windows

If a window is overlapped by a layered (i.e. partially transparent)
window then that region will not disappear from the native window clip
region. This lets us handle compositing multiple layers of windows.

For native subwindows this doesn't really work. For them we apply the
clip region as a shape to the native window which lets us have client
side windows overlapping the native window. However, with the addition
of the layered stuff the "overlapped-by-alpha-csw" part got broken, as
this area is not removed from the clip region of the native window.

We fix this by also removing the layered area when applying the shape.
This means alpha and alpha backgrounds don't work over native windows,
but there is not much to do about that.
Comment 2 Alexander Larsson 2013-03-27 11:03:08 UTC
Attachment 239938 [details] pushed as 9cc6457 - gdkwindow: Apply layered areas to the shape for native windows