1 In the early days of Xinerama, Solaris Xsun extended the protocol in one
2 direction, while XFree86 extended differently. X.Org has adopted the more
3 widely adopted XFree86 extensions, and thus the Solaris version is deprecated,
4 but Sun maintains backwards compatibility with old versions of Solaris, so
5 we still have this here for now.
8 https://blogs.oracle.com/alanc/xinerama-protocol-clashes-on-solaris
10 --- xorgproto-2019.1/include/X11/extensions/panoramiXproto.h.orig 2019-08-09 01:04:39.020740134 +0000
11 +++ xorgproto-2019.1/include/X11/extensions/panoramiXproto.h 2019-08-09 01:06:19.794396064 +0000
13 } xXineramaScreenInfo;
14 #define sz_XineramaScreenInfo 8
16 +#if defined(SUNSOFT) && !defined(XORGSERVER)
17 +/************************************************************************
18 + * Xsun addition to Xinerama 1.0 protocol, now deprecated in favor of 1.1
21 + * Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved.
23 + * Permission is hereby granted, free of charge, to any person obtaining a
24 + * copy of this software and associated documentation files (the "Software"),
25 + * to deal in the Software without restriction, including without limitation
26 + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
27 + * and/or sell copies of the Software, and to permit persons to whom the
28 + * Software is furnished to do so, subject to the following conditions:
30 + * The above copyright notice and this permission notice (including the next
31 + * paragraph) shall be included in all copies or substantial portions of the
34 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
37 + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38 + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
40 + * DEALINGS IN THE SOFTWARE.
43 +#define X_PanoramiXGetInfo 4
44 +#define X_XineramaInfo 4
46 +#define XINERAMA_PLACE_TOP 1
47 +#define XINERAMA_PLACE_BOTTOM 2
48 +#define XINERAMA_PLACE_RIGHT 4
49 +#define XINERAMA_PLACE_LEFT 8
51 +#ifndef _XINERAMAINFO_
52 +#define _XINERAMAINFO_
59 +typedef struct subwid
61 + XinID wid; /* sub window id */
62 + DELTA dx,dy; /* delta in screen co-ord from virtual zero */
63 + POINT x,y; /* location of window in screen co-ord */
64 + DELTA wdx,wdy;/* size of window in screen co-ord */
67 +typedef struct xineramainfo
69 + XinID wid; /* Window ID of requested virtual window */
70 + SubWID subs[MAXSCREEN]; /* there will be 16 slots */
71 +} XineramaInfo, *pXineramaInfo;
72 +#endif /* _XINERAMAINFO_ */
74 +typedef struct _XXineramaInfoReply
78 + CARD16 sequenceNumber B16;
80 + XinID wid; /* Window ID of requested virtual window */
81 + SubWID subs[MAXSCREEN]; /* there will be 16 slots */
84 +typedef struct _XXineramaInfoReq
87 + CARD8 xXineramaReqType;
92 +#define sz_xXineramaInfoReq 8
93 +#endif /* SUNSOFT & !XORGSERVER */