[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding parameters to windows

From: Seiji Zenitani
Subject: Re: Adding parameters to windows
Date: Tue, 03 Jun 2008 05:04:14 -0400


I noticed that the transparency code was already installed.
Here is a NEWS entry for it.


** Frame operations:

*** Controlling the frame opacity.
The opacity of a frame can now be controlled by setting
the `alpha' frame parameter, on X Window system with 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 controlls the opacity of an active frame,
and the second item controlls 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',
so that the user may not lose control of the frame.
The default value is 20.  Similarly, an integer (0-100) or
a float number (0.0-1.0) can be set.

On 2008/05/19, at 21:17, Stefan Monnier wrote:

Now that your copyright papers are on file, could you send us
a patch together with a corresponding ChangeLog entry?

Here's a patch & ChangeLog lines for a new frame parameter.

It looks OK.  Whoever decides to instll it just needs to make the
following adjustments:
1 - follow coding conventions (a space after ";" and ",", a space
   around binary operators).
2 - add a NEWS entry and a ChangeLog entry.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]