3 messages in net.java.dev.jna.usersFW: Problems with transparent windows...
FromSent OnAttachments
Shaun HaneyDec 12, 2007 10:16 am 
Shaun HaneyDec 12, 2007 10:40 am 
Timothy WallDec 12, 2007 11:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:FW: Problems with transparent windows and LinuxActions...
From:Shaun Haney (sha@basis.com)
Date:Dec 12, 2007 10:40:25 am
List:net.java.dev.jna.users

In Linux, I am trying to run a transparent window demo using JNA, and am getting the following stacktrace:

Exception in thread "main" java.lang.UnsupportedOperationException: This X11 display does not provide a 32-bit visual at com.sun.jna.examples.WindowUtils$X11WindowUtils.setWindowTransparent(WindowU tils.java:1029) at com.sun.jna.examples.WindowUtils.setWindowTransparent(WindowUtils.java:1141) at com.basis.techcon07.TransparentWindow.<init>(TransparentWindow.java:66) at com.basis.techcon07.TransparentWindow.<init>(TransparentWindow.java:57) at com.basis.techcon07.TransparentWindow.main(TransparentWindow.java:108)

I’ve tried this on several configurations, including Gnome on Fedora Core 2 and Xfce and KDE on Ubuntu 6.06.1. From what I’ve read, most videocard manufacturers (Nvidia and ATI come to mind) make 24-bit color Linux drivers for their videocards, but not 32-bit ones due to the fact that the last byte is usually used for transparency.

Has anyone had success with transparent and shaped windows under Linux? Is there a specific configuration I need in order to get things working?

Thanks in advance!

Shaun Haney

Software Test Engineer

BASIS International Ltd.

sha@basis.com

No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.1/1182 - Release Date: 12/12/2007 11:29 AM

No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.1/1182 - Release Date: 12/12/2007 11:29 AM