

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
1 message in net.java.dev.jna.usersFwd: [jna-users] Problems with transp...| From | Sent On | Attachments |
|---|---|---|
| Timothy Wall | Dec 13, 2007 4:06 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Fwd: [jna-users] Problems with transparent windows and Linux | Actions... |
|---|---|---|
| From: | Timothy Wall (twal...@dev.java.net) | |
| Date: | Dec 13, 2007 4:06:33 pm | |
| List: | net.java.dev.jna.users | |
Begin forwarded message:
From: "Shaun Haney" <sha...@basis.com> Date: December 13, 2007 5:04:25 PM EST To: "'Timothy Wall'" <twal...@dev.java.net> Subject: RE: [jna-users] Problems with transparent windows and Linux
Tim:
Thank you very much. Enabling the Composite extension in my /etc/X11/xorg.conf file did the trick.
Shaun Haney Software Test Engineer BASIS International Ltd. sha...@basis.com
-----Original Message----- From: Timothy Wall [mailto:twal...@dev.java.net] Sent: Wednesday, December 12, 2007 12:44 PM To: use...@jna.dev.java.net Cc: Shaun Haney Subject: Re: [jna-users] Problems with transparent windows and Linux
Shaped windows don't require a 32-bit visual. Transparency does.
You can check what visuals are provided by invoking "xdpyinfo". Usually the last visual listed is 32 bits (if you have one at all). I don't think it has to do with your video card so much as your X11 and window manager setup.
Your X11 config file needs to have the "Composite" extension enabled (google on this); your window manager has its own specific settings (I use a vanilla xubuntu setup, but I vaguely recall having to tweak the X11 conf and something in xfce).
Google "x11 enable composite transparency" and filter on your current system + window manager + X11 setup.
On Dec 12, 2007, at 1:17 PM, Shaun Haney wrote:
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(WindowUtils.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?
I suppose I should tweak the demo to do the shaped window even if the transparency isn't supported.=
No virus found in this incoming 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/1183 - Release Date: 12/13/2007 9:15 AM







