Unfortunately, we've never released documentation or source for the
old Sun-specific Xinerama protocol extension.   We have released patches
for Solaris 9 & 10 to allow those releases to be compatible with the
public Xinerama 1.1 from X.Org, but not for Solaris 7 or 8.

We should be releasing the panoramiXproto.h soon though - the Sun-specific
changes are:

--- panoramiXproto.h    Fri Apr 23 11:43:06 2004
+++ panoramiXproto.h    Tue Apr 18 17:42:17 2006
@@ -189,4 +189,85 @@
  } xXineramaScreenInfo;
  #define sz_XineramaScreenInfo 8

+#ifdef SUNSOFT
+/************************************************************************
+ * Xsun addition to Xinerama 1.0 protocol, now deprecated in favor of 1.1
+ * protocol.
+ *
+ * Copyright 2000 Sun Microsystems, Inc.  All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, and/or sell copies of the Software, and to permit persons
+ * to whom the Software is furnished to do so, provided that the above
+ * copyright notice(s) and this permission notice appear in all copies of
+ * the Software and that both the above copyright notice(s) and this
+ * permission notice appear in supporting documentation.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+ * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+ * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+ * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+ * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Except as contained in this notice, the name of a copyright holder
+ * shall not be used in advertising or otherwise to promote the sale, use
+ * or other dealings in this Software without prior written authorization
+ * of the copyright holder.
+ */
+#pragma ident   "%W%   %E% SMI"
+
+#define X_PanoramiXGetInfo     4
+#define X_XineramaInfo         4
+
+#ifndef _XINERAMAINFO_
+#define _XINERAMAINFO_
+#define XinID  int
+#define MAXSCREEN 16
+#define DELTA  int
+#define POINT  int
+
+typedef struct subwid
+{
+       XinID   wid;    /* sub window id */
+       DELTA   dx,dy;  /* delta in screen co-ord from virtual zero */
+       POINT   x,y;    /* location of window in screen co-ord */
+       DELTA   wdx,wdy;/* size of window in screen co-ord */
+}SubWID, *pSubWID;
+
+typedef struct xineramainfo
+{
+       XinID   wid;    /* Window ID of requested virtual window */
+       SubWID  subs[MAXSCREEN];        /* there will be 16 slots */
+}XineramaInfo, *pXineramaInfo;
+
+#endif
+
+typedef struct _XXineramaInfoReply
+{
+       BYTE    type;
+       CARD8   unused;
+       CARD16  sequenceNumber B16;
+       CARD32  length B32;
+       XinID   wid;    /* Window ID of requested virtual window */
+       SubWID  subs[MAXSCREEN];        /* there will be 16 slots */
+}xXineramaInfoReply;
+
+typedef struct _XXineramaInfoReq
+{
+       CARD8   reqType;
+       CARD8   xXineramaReqType;
+       CARD16  length B16;
+       CARD32  visual B32;
+}xXineramaInfoReq;
+
+#define sz_xXineramaInfoReq 8
+#endif /* SUNSOFT */
+
  #endif

        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Peter Harris wrote:
> I am trying to make our X server's Xinerama implementation compatible with 
> old releases of Solaris/CDE, but I have been unable to find any documentation 
> on Sun's implementation of Xinerama.
> 
> Re http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6216985
> 
> This bug appears to reference this problem, and the workaround of recognizing 
> both protocols in the X server in Nevada as of build 16.
> 
> However, none of the downloads I've been able to find include the modified 
> Xinerama code. I've looked in X-src-20060404.tar.bz2 (build 38, from this 
> forum) and X-src-20060331.tar.bz2 (unknown build number, from 
> http://opensolaris.org/os/community/x_win/sources/ ).
> 
> All I really need is the old panoramiXproto.h, or proper documentation on the 
> old draft of Xinerama that Sun implemented, but the source code that 
> implements both would be even better.
> 
> http://blogs.sun.com/roller/page/alanc/20050602 documents the XineramaInfo 
> reqeust, but not the reply. Is there anywhere else I can look?
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> xwin-discuss mailing list
> xwin-discuss at opensolaris.org


Reply via email to