xwin sets ROOTLESS_PROTECT_ALPHA to "NO": bug?

Colin Harrison colin.harrison at virgin.net
Wed Jul 14 17:02:08 PDT 2010


Hi,

Jamey Sharp wrote:
> When the server is built on Windows, ROOTLESS_PROTECT_ALPHA is defined
to NO, so rootless will protect the alpha channel. Counter-intuitive
to say the least

I've always applied this patch in Xming to match the __APPLE__ case and
remind me of the truth in the code...

--- ./miext/rootless/save_rootlessConfig.h      2010-05-20
17:31:07.000000000 +0100
+++ ./miext/rootless/rootlessConfig.h   2010-06-28 17:57:52.000000000 +0100
@@ -53,7 +53,7 @@
 #if defined(__CYGWIN__) || defined(WIN32)

 # define ROOTLESS_GLOBAL_COORDS TRUE
-# define ROOTLESS_PROTECT_ALPHA NO
+# define ROOTLESS_PROTECT_ALPHA TRUE
 # define ROOTLESS_REDISPLAY_DELAY 10
 # undef  ROOTLESS_RESIZE_GRAVITY
 # undef  ROOTLESS_TRACK_DAMAGE

I've never built Xwin without the ROOTLESS_PROTECT_ALPHA code and so would
be happy to have it hard-wired in.

Thanks,
Colin Harrison



More information about the xorg-devel mailing list