From 6f007183616dd13dc7e1622985a99f3401a4b1f1 Mon Sep 17 00:00:00 2001 From: Philipp Knechtges Date: Sun, 20 Nov 2011 13:09:18 +0100 Subject: Adding _NET_WM_OPAQUE_REGION Adding a new property _NET_WM_OPAQUE_REGION that as the name says represents an area of the window that occludes the background. The implementation is the same as discussed in http://www.mail-archive.com/wm-spec-list@gnome.org/msg00715.html --- wm-spec/wm-spec.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/wm-spec/wm-spec.xml b/wm-spec/wm-spec.xml index f7676e4..87dc02d 100644 --- a/wm-spec/wm-spec.xml +++ b/wm-spec/wm-spec.xml @@ -1553,6 +1553,31 @@ window's frame. left, right, top and bottom are widths of the respective borders added by the Window Manager. + + _NET_WM_OPAQUE_REGION + + +The Client MAY set this property to a list of 4-tuples [x, y, width, +height], each representing a rectangle in window coordinates where the +pixels of the window's contents have a fully opaque alpha value. If +the window is drawn by the compositor without adding any transparency, +then such a rectangle will occlude whatever is drawn behind it. When +the window has an RGB visual rather than an ARGB visual, this property +is not typically useful, since the effective opaque region of a +window is exactly the bounding region of the window as set via the +shape extension. For windows with an ARGB visual and also a bounding +region set via the shape extension, the effective opaque region is +given by the intersection of the region set by this property and the +bounding region set via the shape extension. The compositing manager +MAY ignore this hint. + + +Rationale: This gives the compositing manager more room for optimizations. +For example, it can avoid drawing occluded portions behind the window. + + Window Manager Protocols @@ -2261,6 +2286,9 @@ OR OTHER DEALINGS IN THE SOFTWARE. Added _NET_WM_STATE_FOCUSED. + +Added _NET_WM_OPAQUE_REGION + -- cgit v1.2.3-54-g00ecf