diff etc/NEWS @ 95529:48aeb7d8e750

alpha frame parameter details from Seiji Zenitani <zenitani at mac.com>.
author Glenn Morris <rgm@gnu.org>
date Wed, 04 Jun 2008 07:08:45 +0000
parents 8a703a3c84d7
children 8132494e3e26
line wrap: on
line diff
--- a/etc/NEWS	Wed Jun 04 05:58:33 2008 +0000
+++ b/etc/NEWS	Wed Jun 04 07:08:45 2008 +0000
@@ -121,10 +121,24 @@
 http://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html
 for details about XEmbed.
 
-FIXME
-** There is a new frame parameter, alpha.
-This [does something] on [some kind of system] with [some kind of X
-server] and [some kind of window manager].
+** Controlling the frame opacity
+The opacity of a frame can now be controlled by setting the `alpha'
+frame parameter, on an X Window system with the composite extension.
+
+The alpha parameter should be an integer between 0 (transparent) and
+100 (opaque) or a float number between 0.0 and 1.0.  Optionally, the
+opacity can be set by a cons cell; the first item controls the
+opacity of an active frame, and the second item controls that of
+non-active frames.
+
+ (set-frame-parameter nil 'alpha 80)
+ (set-frame-parameter nil 'alpha 0.8)
+ (set-frame-parameter nil 'alpha '(100 70)) ; (<active> [<inactive>])
+ (set-frame-parameter nil 'alpha nil)
+
+Note that the threshold opacity of a frame is defined by the variable
+`frame-alpha-lower-limit' (default 20), so that the user may not lose
+control of the frame.
 
 ** Emacs comes with a new set of default icons.
 Various resolutions are available as etc/images/icons/hicolor/*/apps/emacs.png.