Tk Source Code

View Ticket
Login
Ticket UUID: 1566196
Title: Implement alpha support
Type: RFE Version: None
Submitter: ctasada Created on: 2006-09-27 08:04:03
Subsystem: 67. Unix Window Operations Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-09-29 03:00:25
Resolution: Later Closed By: jenglish
    Closed on: 2006-09-27 16:52:43
Description:
The -alpha attribute in wm is not supported in Linux
systems.

Would be great if this attribute can be added, since
the applications will have a more consistence look&feel
in the different OS.

Thanks.
User Comments: jenglish added on 2006-09-29 03:00:25:
Logged In: YES 
user_id=68433

Just to clarify: Tk is already doing all that it can do as
far as implementing this feature is concerned.  The rest is
up to the Window Manager / Compositing Manager / Desktop
Environment.  So this won't work any better in future Tk
releases, it's up to future WMs.  (I think that
bleeding-edge KDE releases support this now, and Metacity
has it as a compile-time option.  Oh, it also depends on X
server upgrades ...)

ctasada added on 2006-09-28 14:50:21:
Logged In: YES 
user_id=340696

Hi Joe,

I you mean in the 8.5a4 I've already tested (and I'm using
it in Windows) but in Linux isn't working (and is documented
not be working). If you mean in the future 8.5a5, I haven't
tested, but I'll be more than happy to try it :)

Thanks again for your hard work.

jenglish added on 2006-09-27 23:52:43:
Logged In: YES 
user_id=68433

[wm attributes -alpha] is already implemented in CVS HEAD
(undocumented, experimental feature).

It just sets the _NET_WM_WINDOW_OPACITY property, and relies
on the compositing manager to do the rest.  Since few
current desktops have a compositing manager, this will have
no effect on most systems; that's the best we can do for now.

nobody added on 2006-09-27 17:25:12:
Logged In: NO 

Googling a bit I see that xorg supports it internally and
xfce and kde also take advantage of it.

Does it mean that can be implemented, at least, in some
environments?

dkf added on 2006-09-27 16:03:37:
Logged In: YES 
user_id=79902

Requires supporting the _NET_WM_WINDOW_OPACITY property on
toplevels. If not supported on a particular system, it will
be ignored (which is safe).