From 77da08959a92a9873794ca0242d0a3ffea33befc Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Fri, 25 Jan 2013 14:28:05 -0500 Subject: Add _NET_WM_BYPASS_COMPOSITOR hint Adds a property that allows client windows to hint the compositor that they should or should never be unredirected / run uncomposited. --- wm-spec/wm-spec.xml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/wm-spec/wm-spec.xml b/wm-spec/wm-spec.xml index 87dc02d..08eef15 100644 --- a/wm-spec/wm-spec.xml +++ b/wm-spec/wm-spec.xml @@ -1578,6 +1578,29 @@ Rationale: This gives the compositing manager more room for optimizations. For example, it can avoid drawing occluded portions behind the window. + _NET_WM_BYPASS_COMPOSITOR + + +The Client MAY set this property to hint the compositor that the +window would benefit from running uncomposited (i.e not redirected +offscreen) or that the window might be hurt from being uncomposited. +A value of 0 indicates no preference. A value of 1 hints the +compositor to disabling compositing of this window. A value of 2 hints +the compositor to not disabling compositing of this window. All other +values are reserved and should be treated the same as a value of +0. The compositing manager MAY bypass compositing for both fullscreen +and non-fullscreen windows if bypassing is requested, but MUST NOT +bypass if it would cause differences from the composited appearance. + + +Rationale: Some applications like fullscreen games might want run +without the overhead of being redirected offscreen (to avoid extra +copies) and thus perform better. An application which creates +pop-up windows might always want to run composited to avoid exposes. + + Window Manager Protocols @@ -2284,6 +2307,9 @@ OR OTHER DEALINGS IN THE SOFTWARE. Changes since 1.4draft +Added _NET_WM_BYPASS_COMPOSITOR + + Added _NET_WM_STATE_FOCUSED. -- cgit v1.2.3-54-g00ecf