You need a compositing window manager (metacity or compiz) with
compositing enabled.
Your X server needs the x render and composite extensions enabled.
Do "xdpyinfo" to see if those extensions exist. There should also be
a 32-bit visual, which is required for alpha compositing.
Enabling compositing is specific to your window manager and X server
configuration. Usually these are *not* runtime parameters.
On Oct 2, 2008, at 8:58 AM, Yoseph Phillips wrote:
ShapedWindowDemo is just round, and not translucent, so I guess I
will search round on the internet to find out what you mean by
'proper compositing
bits enabled on your system'. I guess I will then need to find away
to set these correctly using JNA.
From:
twal...@dev.java.net
Sent:
02/10/2008 3:50 PM +0300
To:
yos...@dev.java.net
Subject:
[Issue 91] X11AlphaMaskTest and AlphaMaskDemo2 are not working on
Linux
https://jna.dev.java.net/issues/show_bug.cgi?id=91
User twalljava changed the following:
What |Old value |New value
=
=
=
=
=
=
=
=
=
=
=
=====================================================================
Status|NEW |RESOLVED
--------------------------------------------------------------------------------
Resolution| |WONTFIX
--------------------------------------------------------------------------------
------- Additional comments from twal...@dev.java.net Thu Oct 2
12:50:35 +0000 2008 -------
X11AlphaMaskTest attempts to use Java's built-in compositing to
send pixels
instead of XPutImage. It has never worked completely, which is why
XPutImage is
used in WindowUtils.
AlphaMaskDemo2 works for me. If the ShapedWindowDemo does not
produce a
translucent clock (not just round), then you don't have the proper
compositing
bits enabled on your system.