From: Glenn Morris Date: Wed, 4 Jun 2008 07:08:45 +0000 (+0000) Subject: alpha frame parameter details from Seiji Zenitani . X-Git-Tag: emacs-pretest-23.0.90~5120 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=55f9bad5bd33e83504e2e1c4352076f19e297db4;p=emacs.git alpha frame parameter details from Seiji Zenitani . --- diff --git a/etc/NEWS b/etc/NEWS index a2bcb9718da..4a5c2dc88d2 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -121,10 +121,24 @@ You can embed Emacs in another application on X11. The new command line option 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)) ; ( []) + (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.