Skip to main content

Translucent Windows on Ubuntu 8.04

7 replies [Last post]
chandru_in
Offline
Joined: 2005-07-21
Points: 0

Hi,

I tried the demo given at,

http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_w...

Running it on Webstart of Java 6 u6 and Java 6 u10 beta build 23 makes no difference.

In both cases, changing the shape of the window works. But translucency does not. Even the slider is disabled.

When run with "Enable the per-pixel translucency effect" turned on, the selected shape is displayed as a black patch in the middle of the screen.

If the check box is off, a shaped opaque windows is displayed. Am I missing something?

Has anyone had luck with translucency on any Linux distribution? Or is it another Windows-only feature in Java 6 u10?

I use Ubuntu 8.04 with Gnome.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chandru_in
Offline
Joined: 2005-07-21
Points: 0

The translucency has started working after enabling compiz (can someone explain why I need compiz on Ubuntu for simple translucency?).

But now, when I select "Enable the per-pixel translucency effect", the shaped window disappears completely.

Is this a bug which needs to be reported?

anthony_p
Offline
Joined: 2006-07-24
Points: 0

I think you need compiz because the simple translucency support integrated in Metacity is not sufficient for this feature to work, or it might not have been simply reported by Metacity as supported. We'll take a look at this issue on Ubuntu 8.04.

Regarding the disappearing window after choosing the per-pixel translucency: could you please provide the values specified in other controls (the shape, and the opacity slider)? My guess is: you may set the slider to 0 (or some other rather small value). In this case the window indeed should seem disappeared.

chandru_in
Offline
Joined: 2005-07-21
Points: 0

Slider value is 100. Shape selected is "Rounded corners" (re-producible with any shape). "Paint gradient" is selected.

If I simply uncheck "per-pixel translucency, other things work fine.

anthony_p
Offline
Joined: 2006-07-24
Points: 0

The following bug had been submitted to track this issue:

http://bugs.sun.com/view_bug.do?bug_id=6710012 (should be available in a day or two).

Thank you fo reporting the issue!

chandru_in
Offline
Joined: 2005-07-21
Points: 0

Nice to see that my bug report is accepted though I had not posted my own code to demonstrate it. Thanks!

Once the report appears in SDN I'll post a code snippet too.

ajmmm
Offline
Joined: 2008-07-04
Points: 0

Hi, all!

After a complete update of my 8.04, per pixel translucency just stop working at all. I cannot find even GraphicsConfiguration that suports this type of translucency. Can anyone help me, please, solving this issue?

Thank you.

antonio

anthony_p
Offline
Joined: 2006-07-24
Points: 0

Hi Antonio,

First of all, due to the above issue the per-pixel mode should not work at all on X11 currently.

However, there still should be a translucency-capable GC on your system. If you can't find one, then this is probably some misconfiguration of your X server. Could you please provide the output of the following two commands:

xdpyinfo | grep -i render
xdpyinfo | grep -i comp

These may be executed by a regular user, they don't need root privileges.
--
best regards,
Anthony