Hi,

the attached patch provides frame-transparency to Emacs on Mac OSX and Windows. We are happy if it will be merged into the main emacs code.


===========


1. Target operating systems

* Mac OSX  :   'Carbon Emacs'
* Windows XP, 2000, ME :   'NTEmacs'


2. How to build

* Mac OSX
Frame-transparency is automatically enabled when compiled on Mac OSX 10.2 or later.

* MS Windows
If you use Windows XP, 2000 or ME, add manually the below switch when configuring.
CFLAGS=-DUSE_TRANSPARENCY


3. Parameters

Two frame parameters are introduced:

* active-alpha : window opacity of the frontmost frame.
* inactive-alpha : window opacity of non-active frames.

Window opacity will be set by using a float value between 0.0 (invisible) to 1.0 (completely opaque). By default they are set to 1.0.


4. sample settings

To set frame-transparency of the current frame

        ;; active frame
        (set-frame-parameter (selected-frame) 'active-alpha 0.9)
        ;; non active frame
        (set-frame-parameter (selected-frame) 'inactive-alpha 0.8)

To set the default frame parameters

        (setq default-frame-alist
              (append
               (list
                '(active-alpha . 0.9)  ;; active frame
                '(inactive-alpha . 0.8) ;; non active frame
                ) default-frame-alist)
              )

5. authors

Ryo Yoshitake, Takashi Hiromatsu, Seiji Zenitani

contact: [EMAIL PROTECTED]


===========


Sincerely,


Seiji Zenitani
[EMAIL PROTECTED]


Attachment: transparency2.patch
Description: Binary data

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to