1 message in net.java.dev.jna.usersRe: A small patch to WindowUtils to g...
FromSent OnAttachments
Timothy WallMay 21, 2007 6:12 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:Re: A small patch to WindowUtils to get it working on feisty.Actions...
From:Timothy Wall (twal@dev.java.net)
Date:May 21, 2007 6:12:53 am
List:net.java.dev.jna.users

On May 21, 2007, at 3:01 AM, Adam Kruszewski wrote:

Hello, I have latest Feisty with Xorg/aiglx (running beryl) with nvidia binary drivers from feisty repository. I had to modify getAlphaVisuals() in WindowsUtils to get the examples working:

for (final XVisualInfo element : infos) { + if (null != element.visual) { final XRenderPictFormat format = X11.Xrender.INSTANCE .XRenderFindVisualFormat(dpy, element.visual); if ((format.type == X11.Xrender.PictTypeDirect) && (format.direct.alphaMask != 0)) { list.add(new Integer(element.visualID)); } + } }

It seems on my system XVisualInfo contains 40 visuals, but only the first one was not null, so the examples ware throwin NPE from XRenderFindVisualFormat().

Cheers and thanks for this great library! a.

That seems odd. I don't think you should get 40 visuals reported and then have *any* of those be null, I bet that's a bug somewhere else (perhaps in the generation of the XVisualInfo array itself).