swi-prolog: update to 9.2.9
[oi-userland.git] / components / x11 / x11-protocols / patches / 04_xineramaproto.patch
blob195e6c193b7ba39369c71389153c9101c673f1f1
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.
7 For more info, see:
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
12 @@ -190,4 +190,83 @@
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
19 + * protocol.
20 + *
21 + * Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved.
22 + *
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:
29 + *
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
32 + * Software.
33 + *
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.
41 + */
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_
54 +#define XinID int
55 +#define MAXSCREEN 16
56 +#define DELTA int
57 +#define POINT int
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 */
65 +} SubWID, *pSubWID;
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
76 + BYTE type;
77 + CARD8 unused;
78 + CARD16 sequenceNumber B16;
79 + CARD32 length B32;
80 + XinID wid; /* Window ID of requested virtual window */
81 + SubWID subs[MAXSCREEN]; /* there will be 16 slots */
82 +}xXineramaInfoReply;
84 +typedef struct _XXineramaInfoReq
86 + CARD8 reqType;
87 + CARD8 xXineramaReqType;
88 + CARD16 length B16;
89 + CARD32 visual B32;
90 +}xXineramaInfoReq;
92 +#define sz_xXineramaInfoReq 8
93 +#endif /* SUNSOFT & !XORGSERVER */
95 #endif