Hi, I wrote a transparency code for Cocoa Emacs. By transparency, I mean the entire-frame transparency, which is configured by the frame parameter alpha.
*** Emacs can now set the frame opacity. The opacity of a frame can be controlled by setting the `alpha' frame parameter. This only takes effect on a compositing window manager for the X Window System, such as Compiz, Beryl and Compiz Fusion, or on Windows 2000 and later versions of Windows. The alpha parameter should be an integer between 0 (transparent) and 100 (opaque), or a float number between 0.0 and 1.0. It can also be a cons cell (ACTIVE . INACTIVE), where ACTIVE is the opacity of an active frame and INACTIVE is the opactity of non-active frames.
The elisp syntax is as follows. (set-frame-parameter nil 'alpha '(<active> [<inactive>])) (set-frame-parameter nil 'alpha 80) (set-frame-parameter nil 'alpha '(100 70)) On Cocoa Emacs, the attached code works fine for active frames (frontmost frame), but I cannot set transparency of inactive frames. I do not understand why, and I am wondering that Cocoa's logic is slightly different from other ports. It would be nice if anyone gives me hints and advices, before I will submit it to the emacs-devel list. Sincerely, Seiji Begin forwarded message:
cocoa-transparency.diff
Description: Binary data
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Emacs-app-dev- mailing list Emacs-app-dev-@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-