Compare commits
167 Commits
master
...
wip/xnest-
Author | SHA1 | Date | |
---|---|---|---|
|
dc3ffbb510 | ||
|
68f1039aab | ||
|
29fc049907 | ||
|
a2c656c968 | ||
|
4e81519e99 | ||
|
44f33ec12c | ||
|
8e8e4e5efe | ||
|
da2ab7cef5 | ||
|
0c87d592ef | ||
|
c8c01b037e | ||
|
70d08b2909 | ||
|
fd4673b91a | ||
|
d6a144694c | ||
|
6402d03746 | ||
|
babd40a157 | ||
|
8a8baad185 | ||
|
b085cab306 | ||
|
0e9dfc52b6 | ||
|
851b10a917 | ||
|
e0d55b9117 | ||
|
d5e35c91da | ||
|
a52304f250 | ||
|
f61464a794 | ||
|
6d84f596e2 | ||
|
3ba3a3ef9e | ||
|
3cd8b1bcfb | ||
|
1f2c8b15d7 | ||
|
bedb2e0775 | ||
|
c9c21a771d | ||
|
db9c57609f | ||
|
7b0d66279a | ||
|
0fba2895dd | ||
|
15ee3cc61f | ||
|
c2389c32db | ||
|
2c0013f869 | ||
|
77c5c76fae | ||
|
4adbe5c698 | ||
|
55e7efa907 | ||
|
64ae92e7d3 | ||
|
6bbbae0b7b | ||
|
7e9c306da9 | ||
|
c2b0692e30 | ||
|
e73eb5fe4c | ||
|
6e10fe3472 | ||
|
b763a2d701 | ||
|
f2471952cd | ||
|
2d58af0711 | ||
|
30553cb633 | ||
|
0dcc6d805f | ||
|
67c00350e1 | ||
|
32f1af918c | ||
|
e96454ba44 | ||
|
e10426e712 | ||
|
2513d9b05f | ||
|
e9f092edcb | ||
|
4ea04dffad | ||
|
b75e0a9e8a | ||
|
820f6c4864 | ||
|
d6e7fb6fd8 | ||
|
0568ba317c | ||
|
d10c1f794a | ||
|
a67fc33168 | ||
|
89d0f18b01 | ||
|
f41fa742cd | ||
|
c1f2628d12 | ||
|
95bdcfc983 | ||
|
0ff5f8f346 | ||
|
4aa796e40f | ||
|
acad480b4e | ||
|
3f33a24497 | ||
|
fe6ebb2974 | ||
|
e3e8d6d6f8 | ||
|
409717e26e | ||
|
1d1df61c04 | ||
|
03afd50c88 | ||
|
63f7cdf761 | ||
|
b2a681aadc | ||
|
0556b71589 | ||
|
e2a178970b | ||
|
bc33fba520 | ||
|
9805481b38 | ||
|
e70b5b3ee0 | ||
|
f5b23d72d4 | ||
|
157f607398 | ||
|
164716f257 | ||
|
f6d0fac9b0 | ||
|
07bb24c89f | ||
|
183258fd33 | ||
|
232dc44c1a | ||
|
de074b2336 | ||
|
f1ea1122c7 | ||
|
ca33c2e6aa | ||
|
18c2e5a383 | ||
|
5430bb498d | ||
|
f50adbbc71 | ||
|
ff098b5e63 | ||
|
ddf1ca6b36 | ||
|
1b3991cfd6 | ||
|
5d0ce67ac3 | ||
|
f550afcd58 | ||
|
35a6920340 | ||
|
48573418d3 | ||
|
68338c5f3f | ||
|
de0e2e32e3 | ||
|
8f9b5d1469 | ||
|
a5b0ffeac1 | ||
|
7dde52144c | ||
|
52f11ad5c2 | ||
|
8d525b6ade | ||
|
56b2f2fefb | ||
|
6380bb55f2 | ||
|
180a385bb6 | ||
|
439c2060c4 | ||
|
93d2f04e27 | ||
|
d8b0730604 | ||
|
b79e555779 | ||
|
9f80d0317a | ||
|
72e80c1203 | ||
|
847f5c4931 | ||
|
8dd6a9f0c4 | ||
|
9c36e20dc7 | ||
|
bcd5ce0e34 | ||
|
10ad9d36dc | ||
|
af89ff92b1 | ||
|
6cc086f567 | ||
|
e0e7bec90c | ||
|
b2f454b2a7 | ||
|
4394af1040 | ||
|
fbfa279867 | ||
|
13e2c25e26 | ||
|
ee4178e34a | ||
|
00b6b02889 | ||
|
9ee6c3ac67 | ||
|
0d59aeff35 | ||
|
4050efb766 | ||
|
d4e12e5c41 | ||
|
8990ecead1 | ||
|
5b8633906e | ||
|
158c923232 | ||
|
c119239e0e | ||
|
dc8230a1e0 | ||
|
04038aa3aa | ||
|
d50d063e4e | ||
|
d403c942a9 | ||
|
002ab70ec9 | ||
|
eb77e0a66a | ||
|
eec6b5360c | ||
|
8582a8854d | ||
|
29f601863e | ||
|
072b8b7403 | ||
|
8a2d0703a0 | ||
|
b7764f786a | ||
|
a609db5f04 | ||
|
b85d76b7d6 | ||
|
f36bc6db07 | ||
|
25b6f40af0 | ||
|
58bf49a188 | ||
|
2143688445 | ||
|
bd892355fe | ||
|
24e3b8a200 | ||
|
6cbf8d999d | ||
|
7b4807458a | ||
|
24d4deafb3 | ||
|
463f610503 | ||
|
6becdeda31 | ||
|
375a489dfa | ||
|
dd628f24e5 |
|
@ -16,17 +16,22 @@
|
||||||
# gcc/clang or other packages, which might break the build with older commits
|
# gcc/clang or other packages, which might break the build with older commits
|
||||||
# using the same tag.
|
# using the same tag.
|
||||||
variables:
|
variables:
|
||||||
FDO_UPSTREAM_REPO: xorg/xserver
|
FDO_UPSTREAM_REPO: xorg/xserver
|
||||||
FDO_DISTRIBUTION_VERSION: bullseye-slim
|
MESON_BUILDDIR: "build"
|
||||||
FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/debian-install.sh'
|
REPO_URL_XORGPROTO: 'https://gitlab.freedesktop.org/xorg/proto/xorgproto.git'
|
||||||
FDO_DISTRIBUTION_TAG: "2024-03-26-explicit-sync-2"
|
XORG_DEBIAN_VERSION: 'bullseye-slim'
|
||||||
MESON_BUILDDIR: "build"
|
XORG_DEBIAN_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/debian-install.sh'
|
||||||
|
XORG_DEBIAN_TAG: '2024-03-26-explicit-sync-2'
|
||||||
|
XORG_FREEBSD_VERSION: '14.0'
|
||||||
|
XORG_FREEBSD_EXEC: ''
|
||||||
|
XORG_FREEBSD_TAG: '2024-06-10.0'
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- project: 'freedesktop/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: *template_sha
|
ref: *template_sha
|
||||||
file:
|
file:
|
||||||
- '/templates/debian.yml'
|
- '/templates/debian.yml'
|
||||||
|
- '/templates/freebsd.yml'
|
||||||
- '/templates/ci-fairy.yml'
|
- '/templates/ci-fairy.yml'
|
||||||
- template: Security/SAST.gitlab-ci.yml
|
- template: Security/SAST.gitlab-ci.yml
|
||||||
|
|
||||||
|
@ -93,17 +98,52 @@ stages:
|
||||||
.all_ddx_paths:
|
.all_ddx_paths:
|
||||||
- hw/**/*
|
- hw/**/*
|
||||||
|
|
||||||
|
.debian:
|
||||||
|
variables:
|
||||||
|
FDO_DISTRIBUTION_VERSION: "$XORG_DEBIAN_VERSION"
|
||||||
|
FDO_DISTRIBUTION_EXEC: "$XORG_DEBIAN_EXEC"
|
||||||
|
FDO_DISTRIBUTION_TAG: "$XORG_DEBIAN_TAG"
|
||||||
|
|
||||||
|
.freebsd:
|
||||||
|
variables:
|
||||||
|
FDO_DISTRIBUTION_TAG: "$XORG_FREEBSD_TAG"
|
||||||
|
FDO_DISTRIBUTION_VERSION: "$XORG_FREEBSD_VERSION"
|
||||||
|
FDO_DISTRIBUTION_EXEC: ''
|
||||||
|
FDO_DISTRIBUTION_PACKAGES: 'git gcc pkgconf autoconf automake libtool xorg-macros xorgproto bash meson ninja pixman xtrans libXau libXdmcp libXfont2 libxkbfile libxcvt libpciaccess font-util libepoll-shim'
|
||||||
|
|
||||||
debian-bullseye:
|
debian-bullseye:
|
||||||
extends:
|
extends:
|
||||||
- .fdo.container-build@debian
|
- .fdo.container-build@debian
|
||||||
- .ci-run-policy
|
- .ci-run-policy
|
||||||
|
- .debian
|
||||||
stage: docker-image
|
stage: docker-image
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
|
||||||
.common-build-and-test:
|
freebsd-image:
|
||||||
|
extends:
|
||||||
|
- .fdo.qemu-build@freebsd@x86_64
|
||||||
|
- .freebsd
|
||||||
|
stage: docker-image
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
|
||||||
|
.xorg-image@debian:
|
||||||
extends:
|
extends:
|
||||||
- .fdo.distribution-image@debian
|
- .fdo.distribution-image@debian
|
||||||
|
- .debian
|
||||||
|
|
||||||
|
.xorg-image@freebsd:
|
||||||
|
extends:
|
||||||
|
- .fdo.distribution-image@freebsd
|
||||||
|
- .freebsd
|
||||||
|
variables:
|
||||||
|
GIT_DEPTH: 1
|
||||||
|
PKG_CONFIG_PATH: /usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/pkg/share/pkgconfig:/usr/pkg/lib/pkgconfig:/usr/local/libdata/pkgconfig
|
||||||
|
|
||||||
|
.common-build-and-test:
|
||||||
|
extends:
|
||||||
|
- .xorg-image@debian
|
||||||
- .ci-run-policy
|
- .ci-run-policy
|
||||||
stage: build-and-test
|
stage: build-and-test
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -153,6 +193,29 @@ mingw-cross-build:
|
||||||
variables:
|
variables:
|
||||||
MESON_ARGS: --cross-file=.gitlab-ci/cross-i686-w64-mingw32.txt -Dglx=false -Dlisten_tcp=true
|
MESON_ARGS: --cross-file=.gitlab-ci/cross-i686-w64-mingw32.txt -Dglx=false -Dlisten_tcp=true
|
||||||
|
|
||||||
|
freebsd:
|
||||||
|
stage: build-and-test
|
||||||
|
extends:
|
||||||
|
- .xorg-image@freebsd
|
||||||
|
variables:
|
||||||
|
MESON_ARGS: -Dglx=false -Dglamor=false -Dudev=false -Dudev_kms=false
|
||||||
|
script:
|
||||||
|
# running of of disk space without this
|
||||||
|
# needed until https://gitlab.freedesktop.org/freedesktop/ci-templates/-/issues/67 is fixed
|
||||||
|
- git gc
|
||||||
|
- git clone --depth=1 $REPO_URL_XORGPROTO dep.xorgproto
|
||||||
|
- /app/vmctl start
|
||||||
|
- set +e
|
||||||
|
- scp -r $PWD "vm:"
|
||||||
|
# need to install newer xorgproto
|
||||||
|
- /app/vmctl exec "cd $CI_PROJECT_NAME/dep.xorgproto && ./autogen.sh --prefix=/usr && make && make install"
|
||||||
|
- /app/vmctl exec "cd $CI_PROJECT_NAME && PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\" MESON_ARGS=\"$MESON_ARGS\" MESON_BUILDDIR=\"$MESON_BUILDDIR\" .gitlab-ci/meson-build.sh --skip-test" && touch .success
|
||||||
|
# test not working yet, so skipped
|
||||||
|
# - scp -r vm:$CI_PROJECT_NAME/test-results.xml .
|
||||||
|
- /app/vmctl stop
|
||||||
|
- set -e
|
||||||
|
- test -e .success || exit 1
|
||||||
|
|
||||||
meson-dist:
|
meson-dist:
|
||||||
extends: .common-build-and-test
|
extends: .common-build-and-test
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -171,7 +234,7 @@ meson-dist:
|
||||||
|
|
||||||
xf86-driver-build-test:
|
xf86-driver-build-test:
|
||||||
extends:
|
extends:
|
||||||
- .fdo.distribution-image@debian
|
- .xorg-image@debian
|
||||||
- .ci-run-policy
|
- .ci-run-policy
|
||||||
stage: drivers
|
stage: drivers
|
||||||
parallel:
|
parallel:
|
||||||
|
|
|
@ -26,22 +26,20 @@ from The Open Group.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
#include <X11/extensions/bigreqsproto.h>
|
#include <X11/extensions/bigreqsproto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcBigReqDispatch(ClientPtr client)
|
ProcBigReqDispatch(ClientPtr client)
|
||||||
|
|
11
Xext/dpms.c
11
Xext/dpms.c
|
@ -26,24 +26,27 @@ Equipment Corporation.
|
||||||
|
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
#include <X11/extensions/dpmsproto.h>
|
||||||
|
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
#include "os/screensaver.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include <X11/extensions/dpmsproto.h>
|
|
||||||
#include "dpmsproc.h"
|
#include "dpmsproc.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
|
Bool noDPMSExtension = FALSE;
|
||||||
|
|
||||||
CARD16 DPMSPowerLevel = 0;
|
CARD16 DPMSPowerLevel = 0;
|
||||||
Bool DPMSDisabledSwitch = FALSE;
|
Bool DPMSDisabledSwitch = FALSE;
|
||||||
CARD32 DPMSStandbyTime = -1;
|
CARD32 DPMSStandbyTime = -1;
|
||||||
|
|
11
Xext/geext.c
11
Xext/geext.c
|
@ -23,16 +23,19 @@
|
||||||
* Author: Peter Hutterer, University of South Australia, NICTA
|
* Author: Peter Hutterer, University of South Australia, NICTA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
#include "windowstr.h"
|
|
||||||
#include <X11/extensions/ge.h>
|
#include <X11/extensions/ge.h>
|
||||||
|
|
||||||
|
#include "windowstr.h"
|
||||||
|
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "geint.h"
|
#include "geint.h"
|
||||||
#include "geext.h"
|
#include "geext.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
|
Bool noGEExtension = FALSE;
|
||||||
|
|
||||||
DevPrivateKeyRec GEClientPrivateKeyRec;
|
DevPrivateKeyRec GEClientPrivateKeyRec;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
|
@ -23,9 +23,7 @@ dealings in this Software without prior written authorization from Digital
|
||||||
Equipment Corporation.
|
Equipment Corporation.
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
@ -34,6 +32,7 @@ Equipment Corporation.
|
||||||
#include <X11/extensions/panoramiXproto.h>
|
#include <X11/extensions/panoramiXproto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "cursor.h"
|
#include "cursor.h"
|
||||||
|
@ -57,7 +56,6 @@ Equipment Corporation.
|
||||||
#ifdef COMPOSITE
|
#ifdef COMPOSITE
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#endif
|
#endif
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
#ifdef GLXPROXY
|
#ifdef GLXPROXY
|
||||||
|
@ -65,6 +63,9 @@ extern VisualPtr glxMatchVisual(ScreenPtr pScreen,
|
||||||
VisualPtr pVisual, ScreenPtr pMatchScreen);
|
VisualPtr pVisual, ScreenPtr pMatchScreen);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Xinerama is disabled by default unless enabled via +xinerama */
|
||||||
|
Bool noPanoramiXExtension = TRUE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PanoramiX data declarations
|
* PanoramiX data declarations
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -23,9 +23,7 @@ dealings in this Software without prior written authorization from Digital
|
||||||
Equipment Corporation.
|
Equipment Corporation.
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
|
|
@ -25,9 +25,7 @@ Equipment Corporation.
|
||||||
|
|
||||||
/* Massively rewritten by Mark Vojkovich <markv@valinux.com> */
|
/* Massively rewritten by Mark Vojkovich <markv@valinux.com> */
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
|
64
Xext/saver.c
64
Xext/saver.c
|
@ -26,16 +26,18 @@ in this Software without prior written authorization from the X Consortium.
|
||||||
* Author: Keith Packard, MIT X Consortium
|
* Author: Keith Packard, MIT X Consortium
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
#include <X11/extensions/saverproto.h>
|
#include <X11/extensions/saverproto.h>
|
||||||
|
|
||||||
|
#include "dix/colormap_priv.h"
|
||||||
|
#include "dix/cursor_priv.h"
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
#include "os/screensaver.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
@ -50,43 +52,27 @@ in this Software without prior written authorization from the X Consortium.
|
||||||
#include "colormapst.h"
|
#include "colormapst.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
#ifdef DPMSExtension
|
#ifdef DPMSExtension
|
||||||
#include <X11/extensions/dpmsconst.h>
|
#include <X11/extensions/dpmsconst.h>
|
||||||
#include "dpmsproc.h"
|
#include "dpmsproc.h"
|
||||||
#endif
|
#endif
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
|
Bool noScreenSaverExtension = FALSE;
|
||||||
|
|
||||||
static int ScreenSaverEventBase = 0;
|
static int ScreenSaverEventBase = 0;
|
||||||
|
|
||||||
static Bool ScreenSaverHandle(ScreenPtr /* pScreen */ ,
|
static Bool ScreenSaverHandle(ScreenPtr pScreen, int xstate, Bool force);
|
||||||
int /* xstate */ ,
|
static Bool CreateSaverWindow(ScreenPtr pScreen);
|
||||||
Bool /* force */
|
static Bool DestroySaverWindow(ScreenPtr pScreen);
|
||||||
);
|
static void UninstallSaverColormap(ScreenPtr pScreen);
|
||||||
|
static void CheckScreenPrivate(ScreenPtr pScreen);
|
||||||
static Bool
|
static void SScreenSaverNotifyEvent(xScreenSaverNotifyEvent *from,
|
||||||
CreateSaverWindow(ScreenPtr /* pScreen */
|
xScreenSaverNotifyEvent *to);
|
||||||
);
|
|
||||||
|
|
||||||
static Bool
|
|
||||||
DestroySaverWindow(ScreenPtr /* pScreen */
|
|
||||||
);
|
|
||||||
|
|
||||||
static void
|
|
||||||
UninstallSaverColormap(ScreenPtr /* pScreen */
|
|
||||||
);
|
|
||||||
|
|
||||||
static void
|
|
||||||
CheckScreenPrivate(ScreenPtr /* pScreen */
|
|
||||||
);
|
|
||||||
|
|
||||||
static void SScreenSaverNotifyEvent(xScreenSaverNotifyEvent * /* from */ ,
|
|
||||||
xScreenSaverNotifyEvent * /* to */
|
|
||||||
);
|
|
||||||
|
|
||||||
static RESTYPE SuspendType; /* resource type for suspension records */
|
static RESTYPE SuspendType; /* resource type for suspension records */
|
||||||
|
|
||||||
|
@ -193,8 +179,6 @@ static DevPrivateKeyRec ScreenPrivateKeyRec;
|
||||||
dixSetPrivate(&(s)->devPrivates, ScreenPrivateKey, v);
|
dixSetPrivate(&(s)->devPrivates, ScreenPrivateKey, v);
|
||||||
#define SetupScreen(s) ScreenSaverScreenPrivatePtr pPriv = (s ? GetScreenPrivate(s) : NULL)
|
#define SetupScreen(s) ScreenSaverScreenPrivatePtr pPriv = (s ? GetScreenPrivate(s) : NULL)
|
||||||
|
|
||||||
#define New(t) (malloc(sizeof (t)))
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
CheckScreenPrivate(ScreenPtr pScreen)
|
CheckScreenPrivate(ScreenPtr pScreen)
|
||||||
{
|
{
|
||||||
|
@ -217,7 +201,7 @@ MakeScreenPrivate(ScreenPtr pScreen)
|
||||||
|
|
||||||
if (pPriv)
|
if (pPriv)
|
||||||
return pPriv;
|
return pPriv;
|
||||||
pPriv = New(ScreenSaverScreenPrivateRec);
|
pPriv = calloc(1, sizeof(ScreenSaverScreenPrivateRec));
|
||||||
if (!pPriv)
|
if (!pPriv)
|
||||||
return 0;
|
return 0;
|
||||||
pPriv->events = 0;
|
pPriv->events = 0;
|
||||||
|
@ -267,7 +251,7 @@ setEventMask(ScreenPtr pScreen, ClientPtr client, unsigned long mask)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!pEv) {
|
if (!pEv) {
|
||||||
pEv = New(ScreenSaverEventRec);
|
pEv = calloc(1, sizeof(ScreenSaverEventRec));
|
||||||
if (!pEv) {
|
if (!pEv) {
|
||||||
CheckScreenPrivate(pScreen);
|
CheckScreenPrivate(pScreen);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -601,9 +585,9 @@ ScreenSaverHandle(ScreenPtr pScreen, int xstate, Bool force)
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (noPanoramiXExtension || !pScreen->myNum)
|
if (noPanoramiXExtension || !pScreen->myNum)
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
SendScreenSaverNotify(pScreen, state, force);
|
SendScreenSaverNotify(pScreen, state, force);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -846,7 +830,7 @@ ScreenSaverSetAttributes(ClientPtr client)
|
||||||
if (!pPriv)
|
if (!pPriv)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
pAttr = New(ScreenSaverAttrRec);
|
pAttr = calloc(1, sizeof(ScreenSaverAttrRec));
|
||||||
if (!pAttr) {
|
if (!pAttr) {
|
||||||
ret = BadAlloc;
|
ret = BadAlloc;
|
||||||
goto bail;
|
goto bail;
|
||||||
|
@ -1091,7 +1075,7 @@ ScreenSaverUnsetAttributes(ClientPtr client)
|
||||||
static int
|
static int
|
||||||
ProcScreenSaverSetAttributes(ClientPtr client)
|
ProcScreenSaverSetAttributes(ClientPtr client)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
REQUEST(xScreenSaverSetAttributesReq);
|
REQUEST(xScreenSaverSetAttributesReq);
|
||||||
PanoramiXRes *draw;
|
PanoramiXRes *draw;
|
||||||
|
@ -1170,7 +1154,7 @@ ProcScreenSaverSetAttributes(ClientPtr client)
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
return ScreenSaverSetAttributes(client);
|
return ScreenSaverSetAttributes(client);
|
||||||
}
|
}
|
||||||
|
@ -1178,7 +1162,7 @@ ProcScreenSaverSetAttributes(ClientPtr client)
|
||||||
static int
|
static int
|
||||||
ProcScreenSaverUnsetAttributes(ClientPtr client)
|
ProcScreenSaverUnsetAttributes(ClientPtr client)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
REQUEST(xScreenSaverUnsetAttributesReq);
|
REQUEST(xScreenSaverUnsetAttributesReq);
|
||||||
PanoramiXRes *draw;
|
PanoramiXRes *draw;
|
||||||
|
@ -1198,7 +1182,7 @@ ProcScreenSaverUnsetAttributes(ClientPtr client)
|
||||||
|
|
||||||
stuff->drawable = draw->info[0].id;
|
stuff->drawable = draw->info[0].id;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
return ScreenSaverUnsetAttributes(client);
|
return ScreenSaverUnsetAttributes(client);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,12 +24,14 @@ in this Software without prior written authorization from The Open Group.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
#include <X11/extensions/securproto.h>
|
||||||
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/registry_priv.h"
|
#include "dix/registry_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
#include "os/audit.h"
|
#include "os/audit.h"
|
||||||
#include "os/auth.h"
|
#include "os/auth.h"
|
||||||
|
|
||||||
|
@ -41,10 +43,10 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "privates.h"
|
#include "privates.h"
|
||||||
#include "xacestr.h"
|
#include "xacestr.h"
|
||||||
#include "securitysrv.h"
|
#include "securitysrv.h"
|
||||||
#include <X11/extensions/securproto.h>
|
|
||||||
#include "extinit.h"
|
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
|
Bool noSecurityExtension = FALSE;
|
||||||
|
|
||||||
/* Extension stuff */
|
/* Extension stuff */
|
||||||
static int SecurityErrorBase; /* first Security error number */
|
static int SecurityErrorBase; /* first Security error number */
|
||||||
static int SecurityEventBase; /* first Security event number */
|
static int SecurityEventBase; /* first Security event number */
|
||||||
|
|
42
Xext/shape.c
42
Xext/shape.c
|
@ -24,9 +24,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
|
|
||||||
********************************************************/
|
********************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
@ -35,6 +33,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/gc_priv.h"
|
#include "dix/gc_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
@ -47,7 +46,6 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
#include "regionstr.h"
|
#include "regionstr.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
typedef RegionPtr (*CreateDftPtr) (WindowPtr /* pWin */
|
typedef RegionPtr (*CreateDftPtr) (WindowPtr /* pWin */
|
||||||
|
@ -67,10 +65,12 @@ static void SShapeNotifyEvent(xShapeNotifyEvent * /* from */ ,
|
||||||
* externally by the Xfixes extension and are now defined in window.h
|
* externally by the Xfixes extension and are now defined in window.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
|
Bool noShapeExtension = FALSE;
|
||||||
|
|
||||||
static int ShapeEventBase = 0;
|
static int ShapeEventBase = 0;
|
||||||
static RESTYPE ClientType, ShapeEventType; /* resource types for event masks */
|
static RESTYPE ClientType, ShapeEventType; /* resource types for event masks */
|
||||||
|
@ -299,7 +299,7 @@ ProcShapeRectangles(ClientPtr client)
|
||||||
stuff->xOff, stuff->yOff, createDefault);
|
stuff->xOff, stuff->yOff, createDefault);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static int
|
static int
|
||||||
ProcPanoramiXShapeRectangles(ClientPtr client)
|
ProcPanoramiXShapeRectangles(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -322,7 +322,7 @@ ProcPanoramiXShapeRectangles(ClientPtr client)
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/**************
|
/**************
|
||||||
* ProcShapeMask
|
* ProcShapeMask
|
||||||
|
@ -397,7 +397,7 @@ ProcShapeMask(ClientPtr client)
|
||||||
stuff->xOff, stuff->yOff, createDefault);
|
stuff->xOff, stuff->yOff, createDefault);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static int
|
static int
|
||||||
ProcPanoramiXShapeMask(ClientPtr client)
|
ProcPanoramiXShapeMask(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -431,7 +431,7 @@ ProcPanoramiXShapeMask(ClientPtr client)
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/************
|
/************
|
||||||
* ProcShapeCombine
|
* ProcShapeCombine
|
||||||
|
@ -525,7 +525,7 @@ ProcShapeCombine(ClientPtr client)
|
||||||
stuff->xOff, stuff->yOff, createDefault);
|
stuff->xOff, stuff->yOff, createDefault);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static int
|
static int
|
||||||
ProcPanoramiXShapeCombine(ClientPtr client)
|
ProcPanoramiXShapeCombine(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -554,7 +554,7 @@ ProcPanoramiXShapeCombine(ClientPtr client)
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/*************
|
/*************
|
||||||
* ProcShapeOffset
|
* ProcShapeOffset
|
||||||
|
@ -596,7 +596,7 @@ ProcShapeOffset(ClientPtr client)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static int
|
static int
|
||||||
ProcPanoramiXShapeOffset(ClientPtr client)
|
ProcPanoramiXShapeOffset(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -619,7 +619,7 @@ ProcPanoramiXShapeOffset(ClientPtr client)
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcShapeQueryExtents(ClientPtr client)
|
ProcShapeQueryExtents(ClientPtr client)
|
||||||
|
@ -1037,32 +1037,32 @@ ProcShapeDispatch(ClientPtr client)
|
||||||
case X_ShapeQueryVersion:
|
case X_ShapeQueryVersion:
|
||||||
return ProcShapeQueryVersion(client);
|
return ProcShapeQueryVersion(client);
|
||||||
case X_ShapeRectangles:
|
case X_ShapeRectangles:
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return ProcPanoramiXShapeRectangles(client);
|
return ProcPanoramiXShapeRectangles(client);
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return ProcShapeRectangles(client);
|
return ProcShapeRectangles(client);
|
||||||
case X_ShapeMask:
|
case X_ShapeMask:
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return ProcPanoramiXShapeMask(client);
|
return ProcPanoramiXShapeMask(client);
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return ProcShapeMask(client);
|
return ProcShapeMask(client);
|
||||||
case X_ShapeCombine:
|
case X_ShapeCombine:
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return ProcPanoramiXShapeCombine(client);
|
return ProcPanoramiXShapeCombine(client);
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return ProcShapeCombine(client);
|
return ProcShapeCombine(client);
|
||||||
case X_ShapeOffset:
|
case X_ShapeOffset:
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return ProcPanoramiXShapeOffset(client);
|
return ProcPanoramiXShapeOffset(client);
|
||||||
else
|
else
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return ProcShapeOffset(client);
|
return ProcShapeOffset(client);
|
||||||
case X_ShapeQueryExtents:
|
case X_ShapeQueryExtents:
|
||||||
return ProcShapeQueryExtents(client);
|
return ProcShapeQueryExtents(client);
|
||||||
|
|
28
Xext/shm.c
28
Xext/shm.c
|
@ -28,9 +28,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
|
|
||||||
#define SHM
|
#define SHM
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ipc.h>
|
#include <sys/ipc.h>
|
||||||
|
@ -45,6 +43,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include <X11/Xfuncproto.h>
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
#include "os/auth.h"
|
#include "os/auth.h"
|
||||||
#include "os/busfault.h"
|
#include "os/busfault.h"
|
||||||
#include "os/osdep.h"
|
#include "os/osdep.h"
|
||||||
|
@ -61,7 +60,6 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include "shmint.h"
|
#include "shmint.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
/* Needed for Solaris cross-zone shared memory extension */
|
/* Needed for Solaris cross-zone shared memory extension */
|
||||||
|
@ -91,10 +89,10 @@ in this Software without prior written authorization from The Open Group.
|
||||||
#define SHMPERM_MODE(p) p->mode
|
#define SHMPERM_MODE(p) p->mode
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
typedef struct _ShmScrPrivateRec {
|
typedef struct _ShmScrPrivateRec {
|
||||||
CloseScreenProcPtr CloseScreen;
|
CloseScreenProcPtr CloseScreen;
|
||||||
|
@ -110,6 +108,8 @@ static void SShmCompletionEvent(xShmCompletionEvent *from,
|
||||||
|
|
||||||
static Bool ShmDestroyPixmap(PixmapPtr pPixmap);
|
static Bool ShmDestroyPixmap(PixmapPtr pPixmap);
|
||||||
|
|
||||||
|
Bool noMITShmExtension = FALSE;
|
||||||
|
|
||||||
static unsigned char ShmReqCode;
|
static unsigned char ShmReqCode;
|
||||||
int ShmCompletionCode;
|
int ShmCompletionCode;
|
||||||
int BadShmSegCode;
|
int BadShmSegCode;
|
||||||
|
@ -156,7 +156,7 @@ static ShmFuncs fbFuncs = { fbShmCreatePixmap, NULL };
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) || defined(__DragonFly__)
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
|
||||||
|
|
||||||
static Bool badSysCall = FALSE;
|
static Bool badSysCall = FALSE;
|
||||||
|
|
||||||
|
@ -732,7 +732,7 @@ ProcShmGetImage(ClientPtr client)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static int
|
static int
|
||||||
ProcPanoramiXShmPutImage(ClientPtr client)
|
ProcPanoramiXShmPutImage(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -1028,7 +1028,7 @@ ProcPanoramiXShmCreatePixmap(ClientPtr client)
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
static PixmapPtr
|
static PixmapPtr
|
||||||
fbShmCreatePixmap(ScreenPtr pScreen,
|
fbShmCreatePixmap(ScreenPtr pScreen,
|
||||||
|
@ -1348,22 +1348,22 @@ ProcShmDispatch(ClientPtr client)
|
||||||
case X_ShmDetach:
|
case X_ShmDetach:
|
||||||
return ProcShmDetach(client);
|
return ProcShmDetach(client);
|
||||||
case X_ShmPutImage:
|
case X_ShmPutImage:
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return ProcPanoramiXShmPutImage(client);
|
return ProcPanoramiXShmPutImage(client);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return ProcShmPutImage(client);
|
return ProcShmPutImage(client);
|
||||||
case X_ShmGetImage:
|
case X_ShmGetImage:
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return ProcPanoramiXShmGetImage(client);
|
return ProcPanoramiXShmGetImage(client);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return ProcShmGetImage(client);
|
return ProcShmGetImage(client);
|
||||||
case X_ShmCreatePixmap:
|
case X_ShmCreatePixmap:
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return ProcPanoramiXShmCreatePixmap(client);
|
return ProcPanoramiXShmCreatePixmap(client);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
return ProcShmCreatePixmap(client);
|
return ProcShmCreatePixmap(client);
|
||||||
#ifdef SHM_FD_PASSING
|
#ifdef SHM_FD_PASSING
|
||||||
case X_ShmAttachFd:
|
case X_ShmAttachFd:
|
||||||
|
|
|
@ -27,9 +27,7 @@ in this Software without prior written authorization from The Open Group.
|
||||||
|
|
||||||
/* dixsleep.c - implement millisecond timeouts for X clients */
|
/* dixsleep.c - implement millisecond timeouts for X clients */
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "sleepuntil.h"
|
#include "sleepuntil.h"
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
|
|
@ -49,9 +49,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -61,6 +59,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include <X11/extensions/syncproto.h>
|
#include <X11/extensions/syncproto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
@ -78,8 +77,6 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "extinit_priv.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Local Global Variables
|
* Local Global Variables
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -29,9 +29,7 @@ from Kaleb S. KEITHLEY
|
||||||
*/
|
*/
|
||||||
/* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */
|
/* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef XF86VIDMODE
|
#ifdef XF86VIDMODE
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
********************************************************/
|
********************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
|
|
@ -25,12 +25,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#define XACE_MAJOR_VERSION 2
|
#define XACE_MAJOR_VERSION 2
|
||||||
#define XACE_MINOR_VERSION 0
|
#define XACE_MINOR_VERSION 0
|
||||||
|
|
||||||
|
#include "dix/selection_priv.h"
|
||||||
|
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "pixmap.h"
|
#include "pixmap.h"
|
||||||
#include "region.h"
|
#include "region.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "property.h"
|
#include "property.h"
|
||||||
#include "selection.h"
|
|
||||||
|
|
||||||
/* Default window background */
|
/* Default window background */
|
||||||
#define XaceBackgroundNoneState(w) ((w)->forcedBG ? BackgroundPixel : None)
|
#define XaceBackgroundNoneState(w) ((w)->forcedBG ? BackgroundPixel : None)
|
||||||
|
|
|
@ -20,13 +20,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#ifndef _XACESTR_H
|
#ifndef _XACESTR_H
|
||||||
#define _XACESTR_H
|
#define _XACESTR_H
|
||||||
|
|
||||||
|
#include "dix/selection_priv.h"
|
||||||
|
|
||||||
#include "dix.h"
|
#include "dix.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "property.h"
|
#include "property.h"
|
||||||
#include "selection.h"
|
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
|
||||||
/* XACE_CORE_DISPATCH */
|
/* XACE_CORE_DISPATCH */
|
||||||
|
|
|
@ -26,21 +26,20 @@ from The Open Group.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
#include <X11/extensions/xcmiscproto.h>
|
||||||
|
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include <X11/extensions/xcmiscproto.h>
|
|
||||||
#include "extinit_priv.h"
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ProcXCMiscGetVersion(ClientPtr client)
|
ProcXCMiscGetVersion(ClientPtr client)
|
||||||
|
|
|
@ -34,19 +34,13 @@
|
||||||
* XLoadQueryFont).
|
* XLoadQueryFont).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef MITSHM
|
#ifdef MITSHM
|
||||||
#ifdef SVR4
|
#ifdef SVR4
|
||||||
#include <sys/sysmacros.h>
|
#include <sys/sysmacros.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(__CYGWIN__)
|
|
||||||
#include <sys/param.h>
|
|
||||||
#include <sys/sysmacros.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/ipc.h>
|
#include <sys/ipc.h>
|
||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -58,18 +52,21 @@
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
#include <X11/extensions/xf86bigfproto.h>
|
||||||
|
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "dixfontstr.h"
|
#include "dixfontstr.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "extinit.h"
|
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
#include <X11/extensions/xf86bigfproto.h>
|
|
||||||
#include "xf86bigfontsrv.h"
|
#include "xf86bigfontsrv.h"
|
||||||
|
|
||||||
|
Bool noXFree86BigfontExtension = FALSE;
|
||||||
|
|
||||||
static void XF86BigfontResetProc(ExtensionEntry * /* extEntry */
|
static void XF86BigfontResetProc(ExtensionEntry * /* extEntry */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -87,7 +84,7 @@ static unsigned int pagesize;
|
||||||
|
|
||||||
static Bool badSysCall = FALSE;
|
static Bool badSysCall = FALSE;
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__CYGWIN__) || defined(__DragonFly__)
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SigSysHandler(int signo)
|
SigSysHandler(int signo)
|
||||||
|
@ -716,7 +713,7 @@ XFree86BigfontExtensionInit(void)
|
||||||
|
|
||||||
FontShmdescIndex = xfont2_allocate_font_private_index();
|
FontShmdescIndex = xfont2_allocate_font_private_index();
|
||||||
|
|
||||||
#if !defined(CSRG_BASED) && !defined(__CYGWIN__)
|
#if !defined(CSRG_BASED)
|
||||||
pagesize = SHMLBA;
|
pagesize = SHMLBA;
|
||||||
#else
|
#else
|
||||||
#ifdef _SC_PAGESIZE
|
#ifdef _SC_PAGESIZE
|
||||||
|
|
11
Xext/xres.c
11
Xext/xres.c
|
@ -2,30 +2,29 @@
|
||||||
Copyright (c) 2002 XFree86 Inc
|
Copyright (c) 2002 XFree86 Inc
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
#include <X11/extensions/XResproto.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "dix/registry_priv.h"
|
#include "dix/registry_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
#include "os/client_priv.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include <X11/extensions/XResproto.h>
|
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
#include "client.h"
|
|
||||||
#include "list.h"
|
#include "list.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -36,6 +35,8 @@
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Bool noResExtension = FALSE;
|
||||||
|
|
||||||
/** @brief Holds fragments of responses for ConstructClientIds.
|
/** @brief Holds fragments of responses for ConstructClientIds.
|
||||||
*
|
*
|
||||||
* note: there is no consideration for data alignment */
|
* note: there is no consideration for data alignment */
|
||||||
|
|
|
@ -17,18 +17,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
********************************************************/
|
********************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "dix/property_priv.h"
|
||||||
|
#include "dix/selection_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "selection.h"
|
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "propertyst.h"
|
#include "propertyst.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "xselinuxint.h"
|
#include "xselinuxint.h"
|
||||||
|
|
||||||
#define CTX_DEV offsetof(SELinuxSubjectRec, dev_create_sid)
|
#define CTX_DEV offsetof(SELinuxSubjectRec, dev_create_sid)
|
||||||
|
|
|
@ -22,9 +22,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
@ -32,17 +30,18 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <libaudit.h>
|
#include <libaudit.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
#include "dix/registry_priv.h"
|
#include "dix/registry_priv.h"
|
||||||
|
#include "dix/selection_priv.h"
|
||||||
|
#include "os/client_priv.h"
|
||||||
|
|
||||||
#include "selection.h"
|
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "propertyst.h"
|
#include "propertyst.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "xacestr.h"
|
#include "xacestr.h"
|
||||||
#include "client.h"
|
|
||||||
#define _XSELINUX_NEED_FLASK_MAP
|
#define _XSELINUX_NEED_FLASK_MAP
|
||||||
#include "xselinuxint.h"
|
#include "xselinuxint.h"
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
********************************************************/
|
********************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <selinux/label.h>
|
#include <selinux/label.h>
|
||||||
|
|
||||||
|
|
11
Xext/xtest.c
11
Xext/xtest.c
|
@ -26,9 +26,7 @@
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
@ -37,8 +35,10 @@
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
||||||
|
#include "dix/input_priv.h"
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
#include "os/osdep.h"
|
#include "os/osdep.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
@ -58,7 +58,8 @@
|
||||||
#include "xserver-properties.h"
|
#include "xserver-properties.h"
|
||||||
#include "eventstr.h"
|
#include "eventstr.h"
|
||||||
#include "inpututils.h"
|
#include "inpututils.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
|
Bool noTestExtensions = FALSE;
|
||||||
|
|
||||||
/* XTest events are sent during request processing and may be interrupted by
|
/* XTest events are sent during request processing and may be interrupted by
|
||||||
* a SIGIO. We need a separate event list to avoid events overwriting each
|
* a SIGIO. We need a separate event list to avoid events overwriting each
|
||||||
|
@ -78,10 +79,10 @@ static InternalEvent *xtest_evlist;
|
||||||
*/
|
*/
|
||||||
DeviceIntPtr xtestpointer, xtestkeyboard;
|
DeviceIntPtr xtestpointer, xtestkeyboard;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
static int XTestSwapFakeInput(ClientPtr /* client */ ,
|
static int XTestSwapFakeInput(ClientPtr /* client */ ,
|
||||||
xReq * /* req */
|
xReq * /* req */
|
||||||
|
|
|
@ -21,9 +21,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -50,12 +48,12 @@ SOFTWARE.
|
||||||
|
|
||||||
#include "xvdisp.h"
|
#include "xvdisp.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
|
|
||||||
unsigned long XvXRTPort;
|
unsigned long XvXRTPort;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
SWriteQueryExtensionReply(ClientPtr client, xvQueryExtensionReply * rep)
|
SWriteQueryExtensionReply(ClientPtr client, xvQueryExtensionReply * rep)
|
||||||
|
@ -1435,7 +1433,7 @@ SProcXvDispatch(ClientPtr client)
|
||||||
return SXvProcVector[stuff->data] (client);
|
return SXvProcVector[stuff->data] (client);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static int
|
static int
|
||||||
XineramaXvStopVideo(ClientPtr client)
|
XineramaXvStopVideo(ClientPtr client)
|
||||||
{
|
{
|
||||||
|
@ -1543,7 +1541,7 @@ XineramaXvShmPutImage(ClientPtr client)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define XineramaXvShmPutImage ProcXvShmPutImage
|
#define XineramaXvShmPutImage ProcXvShmPutImage
|
||||||
#endif
|
#endif /* MITSHM */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
XineramaXvPutImage(ClientPtr client)
|
XineramaXvPutImage(ClientPtr client)
|
||||||
|
@ -1798,17 +1796,17 @@ XineramifyXv(void)
|
||||||
XvProcVector[xv_PutImage] = XineramaXvPutImage;
|
XvProcVector[xv_PutImage] = XineramaXvPutImage;
|
||||||
XvProcVector[xv_ShmPutImage] = XineramaXvShmPutImage;
|
XvProcVector[xv_ShmPutImage] = XineramaXvShmPutImage;
|
||||||
}
|
}
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
void
|
void
|
||||||
XvResetProcVector(void)
|
XvResetProcVector(void)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
XvProcVector[xv_PutVideo] = ProcXvPutVideo;
|
XvProcVector[xv_PutVideo] = ProcXvPutVideo;
|
||||||
XvProcVector[xv_PutStill] = ProcXvPutStill;
|
XvProcVector[xv_PutStill] = ProcXvPutStill;
|
||||||
XvProcVector[xv_StopVideo] = ProcXvStopVideo;
|
XvProcVector[xv_StopVideo] = ProcXvStopVideo;
|
||||||
XvProcVector[xv_SetPortAttribute] = ProcXvSetPortAttribute;
|
XvProcVector[xv_SetPortAttribute] = ProcXvSetPortAttribute;
|
||||||
XvProcVector[xv_PutImage] = ProcXvPutImage;
|
XvProcVector[xv_PutImage] = ProcXvPutImage;
|
||||||
XvProcVector[xv_ShmPutImage] = ProcXvShmPutImage;
|
XvProcVector[xv_ShmPutImage] = ProcXvShmPutImage;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,14 +73,15 @@ SOFTWARE.
|
||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
@ -88,7 +89,6 @@ SOFTWARE.
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "opaque.h"
|
#include "opaque.h"
|
||||||
|
@ -100,12 +100,14 @@ SOFTWARE.
|
||||||
#include <X11/extensions/Xvproto.h>
|
#include <X11/extensions/Xvproto.h>
|
||||||
#include "xvdix.h"
|
#include "xvdix.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
#include "xvdisp.h"
|
#include "xvdisp.h"
|
||||||
|
|
||||||
|
Bool noXvExtension = FALSE;
|
||||||
|
|
||||||
static DevPrivateKeyRec XvScreenKeyRec;
|
static DevPrivateKeyRec XvScreenKeyRec;
|
||||||
|
|
||||||
#define XvScreenKey (&XvScreenKeyRec)
|
#define XvScreenKey (&XvScreenKeyRec)
|
||||||
|
@ -163,9 +165,9 @@ XvExtensionInit(void)
|
||||||
ErrorF("XvExtensionInit: Unable to allocate resource types\n");
|
ErrorF("XvExtensionInit: Unable to allocate resource types\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
XineramaRegisterConnectionBlockCallback(XineramifyXv);
|
XineramaRegisterConnectionBlockCallback(XineramifyXv);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
XvScreenGeneration = serverGeneration;
|
XvScreenGeneration = serverGeneration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,9 +258,9 @@ XvScreenInit(ScreenPtr pScreen)
|
||||||
ErrorF("XvScreenInit: Unable to allocate resource types\n");
|
ErrorF("XvScreenInit: Unable to allocate resource types\n");
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
}
|
}
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
XineramaRegisterConnectionBlockCallback(XineramifyXv);
|
XineramaRegisterConnectionBlockCallback(XineramifyXv);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
XvScreenGeneration = serverGeneration;
|
XvScreenGeneration = serverGeneration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
14
Xext/xvmc.c
14
Xext/xvmc.c
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
|
#include <X11/Xfuncproto.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
#include <X11/extensions/XvMC.h>
|
||||||
|
#include <X11/extensions/Xvproto.h>
|
||||||
|
#include <X11/extensions/XvMCproto.h>
|
||||||
|
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include <X11/Xfuncproto.h>
|
|
||||||
#include "xvdix.h"
|
#include "xvdix.h"
|
||||||
#include <X11/extensions/XvMC.h>
|
|
||||||
#include <X11/extensions/Xvproto.h>
|
|
||||||
#include <X11/extensions/XvMCproto.h>
|
|
||||||
#include "xvmcext.h"
|
#include "xvmcext.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
|
|
||||||
|
|
|
@ -26,21 +26,18 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#ifndef XI_STUBS_H
|
#ifndef XI_STUBS_H
|
||||||
#define XI_STUBS_H 1
|
#define XI_STUBS_H 1
|
||||||
|
|
||||||
extern _X_EXPORT int
|
int SetDeviceMode(ClientPtr client,
|
||||||
SetDeviceMode(ClientPtr /* client */ ,
|
DeviceIntPtr dev,
|
||||||
DeviceIntPtr /* dev */ ,
|
int mode);
|
||||||
int /* mode */ );
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
int SetDeviceValuators(ClientPtr client,
|
||||||
SetDeviceValuators(ClientPtr /* client */ ,
|
DeviceIntPtr dev,
|
||||||
DeviceIntPtr /* dev */ ,
|
int *valuators,
|
||||||
int * /* valuators */ ,
|
int first_valuator,
|
||||||
int /* first_valuator */ ,
|
int num_valuators);
|
||||||
int /* num_valuators */ );
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
int ChangeDeviceControl(ClientPtr client,
|
||||||
ChangeDeviceControl(ClientPtr /* client */ ,
|
DeviceIntPtr dev,
|
||||||
DeviceIntPtr /* dev */ ,
|
xDeviceCtl *control);
|
||||||
xDeviceCtl * /* control */ );
|
|
||||||
|
|
||||||
#endif /* XI_STUBS_H */
|
#endif /* XI_STUBS_H */
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,14 +50,13 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h> /* control constants */
|
#include <X11/extensions/XIproto.h> /* control constants */
|
||||||
|
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "XIstubs.h"
|
#include "XIstubs.h"
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "windowstr.h" /* window structure */
|
#include "windowstr.h" /* window structure */
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -78,9 +78,9 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
#include "dix/cursor_priv.h"
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
@ -91,8 +91,10 @@ SOFTWARE.
|
||||||
#include <X11/extensions/XKBproto.h>
|
#include <X11/extensions/XKBproto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "dix/dixgrabs_priv.h"
|
||||||
#include "dix/eventconvert.h"
|
#include "dix/eventconvert.h"
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
|
@ -102,7 +104,6 @@ SOFTWARE.
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
#include "eventstr.h"
|
#include "eventstr.h"
|
||||||
#include "dixevents.h" /* DeliverFocusedEvent */
|
#include "dixevents.h" /* DeliverFocusedEvent */
|
||||||
#include "dixgrabs.h" /* CreateGrab() */
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "listdev.h" /* for CopySwapXXXClass */
|
#include "listdev.h" /* for CopySwapXXXClass */
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
@ -615,7 +616,7 @@ DeepCopyPointerClasses(DeviceIntPtr from, DeviceIntPtr to)
|
||||||
|
|
||||||
if (from->button->xkb_acts) {
|
if (from->button->xkb_acts) {
|
||||||
size_t maxbuttons = max(to->button->numButtons, from->button->numButtons);
|
size_t maxbuttons = max(to->button->numButtons, from->button->numButtons);
|
||||||
to->button->xkb_acts = xnfreallocarray(to->button->xkb_acts,
|
to->button->xkb_acts = XNFreallocarray(to->button->xkb_acts,
|
||||||
maxbuttons,
|
maxbuttons,
|
||||||
sizeof(XkbAction));
|
sizeof(XkbAction));
|
||||||
memset(to->button->xkb_acts, 0, maxbuttons * sizeof(XkbAction));
|
memset(to->button->xkb_acts, 0, maxbuttons * sizeof(XkbAction));
|
||||||
|
|
|
@ -51,9 +51,7 @@ SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#define NUMTYPES 15
|
#define NUMTYPES 15
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
@ -62,13 +60,13 @@ SOFTWARE.
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "gcstruct.h" /* pointer for extnsionst.h */
|
#include "gcstruct.h" /* pointer for extnsionst.h */
|
||||||
#include "extnsionst.h" /* extension entry */
|
#include "extnsionst.h" /* extension entry */
|
||||||
#include "geext.h" /* extension interfaces for ge */
|
#include "geext.h" /* extension interfaces for ge */
|
||||||
#include "dixevents.h"
|
#include "dixevents.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include "privates.h"
|
#include "privates.h"
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "windowstr.h" /* focus struct */
|
#include "windowstr.h" /* focus struct */
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,22 +50,22 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h> /* for inputstr.h */
|
#include <X11/X.h> /* for inputstr.h */
|
||||||
#include <X11/Xproto.h> /* Request macro */
|
#include <X11/Xproto.h> /* Request macro */
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "XIstubs.h"
|
#include "XIstubs.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "exevents.h"
|
#include "exevents.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "xkbsrv.h"
|
#include "xkbsrv.h"
|
||||||
#include "xkbstr.h"
|
#include "xkbstr.h"
|
||||||
|
|
||||||
#include "listdev.h"
|
#include "listdev.h"
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
|
|
@ -32,14 +32,13 @@ from The Open Group.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "windowstr.h" /* window structure */
|
#include "windowstr.h" /* window structure */
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XI2.h>
|
#include <X11/extensions/XI2.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,16 +50,16 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "exevents.h"
|
#include "exevents.h"
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
|
|
||||||
#include "setbmap.h"
|
#include "setbmap.h"
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
|
@ -50,16 +50,16 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "XIstubs.h"
|
#include "XIstubs.h"
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
|
|
||||||
#include "setdval.h"
|
#include "setdval.h"
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
|
@ -50,17 +50,17 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XI2.h>
|
#include <X11/extensions/XI2.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "exevents.h"
|
#include "exevents.h"
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
|
|
||||||
#include "setmmap.h"
|
#include "setmmap.h"
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
|
@ -50,16 +50,16 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "XIstubs.h"
|
#include "XIstubs.h"
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
|
|
||||||
#include "setmode.h"
|
#include "setmode.h"
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
|
@ -54,9 +54,7 @@ SOFTWARE.
|
||||||
* Xnest could do the same thing.
|
* Xnest could do the same thing.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
|
|
@ -50,9 +50,7 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "windowstr.h" /* window structure */
|
#include "windowstr.h" /* window structure */
|
||||||
|
|
|
@ -50,19 +50,17 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "dix/dixgrabs_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "windowstr.h" /* window structure */
|
#include "windowstr.h" /* window structure */
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
#include "dixgrabs.h"
|
|
||||||
#include "ungrdevb.h"
|
#include "ungrdevb.h"
|
||||||
|
|
||||||
#define AllModifiersMask ( \
|
#define AllModifiersMask ( \
|
||||||
|
|
|
@ -50,19 +50,17 @@ SOFTWARE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XIproto.h>
|
#include <X11/extensions/XIproto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "dix/dixgrabs_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "windowstr.h" /* window structure */
|
#include "windowstr.h" /* window structure */
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
#include "dixgrabs.h"
|
|
||||||
#include "xkbsrv.h"
|
#include "xkbsrv.h"
|
||||||
#include "xkbstr.h"
|
#include "xkbstr.h"
|
||||||
#include "ungrdevk.h"
|
#include "ungrdevk.h"
|
||||||
|
|
|
@ -29,15 +29,14 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI2.h>
|
#include <X11/extensions/XI2.h>
|
||||||
#include <X11/extensions/XI2proto.h>
|
#include <X11/extensions/XI2proto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "windowstr.h" /* window structure */
|
#include "windowstr.h" /* window structure */
|
||||||
|
|
|
@ -41,11 +41,11 @@
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
|
#include "dix/cursor_priv.h"
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
#include "xibarriers.h"
|
#include "xibarriers.h"
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
|
|
|
@ -29,15 +29,14 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h> /* for inputstr.h */
|
#include <X11/X.h> /* for inputstr.h */
|
||||||
#include <X11/Xproto.h> /* Request macro */
|
#include <X11/Xproto.h> /* Request macro */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XI2proto.h>
|
#include <X11/extensions/XI2proto.h>
|
||||||
|
|
||||||
|
#include "dix/cursor_priv.h"
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
|
|
|
@ -30,9 +30,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h> /* for inputstr.h */
|
#include <X11/X.h> /* for inputstr.h */
|
||||||
#include <X11/Xproto.h> /* Request macro */
|
#include <X11/Xproto.h> /* Request macro */
|
||||||
|
@ -42,6 +40,7 @@
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "windowstr.h" /* window structure */
|
#include "windowstr.h" /* window structure */
|
||||||
|
|
|
@ -23,9 +23,7 @@
|
||||||
* Author: Peter Hutterer, University of South Australia, NICTA
|
* Author: Peter Hutterer, University of South Australia, NICTA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h> /* for inputstr.h */
|
#include <X11/X.h> /* for inputstr.h */
|
||||||
#include <X11/Xproto.h> /* Request macro */
|
#include <X11/Xproto.h> /* Request macro */
|
||||||
|
@ -38,7 +36,6 @@
|
||||||
#include "windowstr.h" /* window structure */
|
#include "windowstr.h" /* window structure */
|
||||||
#include "scrnintstr.h" /* screen structure */
|
#include "scrnintstr.h" /* screen structure */
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "extinit.h" /* LookupDeviceIntRec */
|
|
||||||
#include "exevents.h"
|
#include "exevents.h"
|
||||||
#include "exglobals.h"
|
#include "exglobals.h"
|
||||||
#include "xigetclientpointer.h"
|
#include "xigetclientpointer.h"
|
||||||
|
|
|
@ -29,9 +29,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI2.h>
|
#include <X11/extensions/XI2.h>
|
||||||
#include <X11/extensions/XI2proto.h>
|
#include <X11/extensions/XI2proto.h>
|
||||||
|
|
|
@ -29,14 +29,13 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI2.h>
|
#include <X11/extensions/XI2.h>
|
||||||
#include <X11/extensions/XI2proto.h>
|
#include <X11/extensions/XI2proto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "dix/dixgrabs_priv.h"
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
|
@ -44,7 +43,6 @@
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include "exglobals.h" /* BadDevice */
|
#include "exglobals.h" /* BadDevice */
|
||||||
#include "xipassivegrab.h"
|
#include "xipassivegrab.h"
|
||||||
#include "dixgrabs.h"
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "inpututils.h"
|
#include "inpututils.h"
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,7 @@
|
||||||
|
|
||||||
/* This code is a modified version of randr/rrproperty.c */
|
/* This code is a modified version of randr/rrproperty.c */
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
|
@ -35,6 +33,7 @@
|
||||||
#include <X11/extensions/XI2proto.h>
|
#include <X11/extensions/XI2proto.h>
|
||||||
|
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
#include "dix.h"
|
#include "dix.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
|
|
|
@ -28,15 +28,14 @@
|
||||||
* @file Protocol handling for the XIQueryDevice request/reply.
|
* @file Protocol handling for the XIQueryDevice request/reply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <X11/extensions/XI2proto.h>
|
#include <X11/extensions/XI2proto.h>
|
||||||
|
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "xkbstr.h"
|
#include "xkbstr.h"
|
||||||
|
|
|
@ -29,9 +29,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h> /* for inputstr.h */
|
#include <X11/X.h> /* for inputstr.h */
|
||||||
#include <X11/Xproto.h> /* Request macro */
|
#include <X11/Xproto.h> /* Request macro */
|
||||||
|
@ -41,6 +39,7 @@
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "dix/eventconvert.h"
|
#include "dix/eventconvert.h"
|
||||||
#include "dix/exevents_priv.h"
|
#include "dix/exevents_priv.h"
|
||||||
|
#include "dix/input_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
#include "windowstr.h" /* window structure */
|
#include "windowstr.h" /* window structure */
|
||||||
|
@ -49,9 +48,9 @@
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "xkbsrv.h"
|
#include "xkbsrv.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#include "inpututils.h"
|
#include "inpututils.h"
|
||||||
#include "xiquerypointer.h"
|
#include "xiquerypointer.h"
|
||||||
|
@ -185,7 +184,7 @@ ProcXIQueryPointer(ClientPtr client)
|
||||||
rep.win_y = 0;
|
rep.win_y = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
rep.root_x += double_to_fp1616(screenInfo.screens[0]->x);
|
rep.root_x += double_to_fp1616(screenInfo.screens[0]->x);
|
||||||
rep.root_y += double_to_fp1616(screenInfo.screens[0]->y);
|
rep.root_y += double_to_fp1616(screenInfo.screens[0]->y);
|
||||||
|
@ -194,7 +193,7 @@ ProcXIQueryPointer(ClientPtr client)
|
||||||
rep.win_y += double_to_fp1616(screenInfo.screens[0]->y);
|
rep.win_y += double_to_fp1616(screenInfo.screens[0]->y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
WriteReplyToClient(client, sizeof(xXIQueryPointerReply), &rep);
|
WriteReplyToClient(client, sizeof(xXIQueryPointerReply), &rep);
|
||||||
if (buttons)
|
if (buttons)
|
||||||
|
|
|
@ -29,9 +29,7 @@
|
||||||
* Protocol handling for the XIQueryVersion request/reply.
|
* Protocol handling for the XIQueryVersion request/reply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,7 @@
|
||||||
* Author: Peter Hutterer
|
* Author: Peter Hutterer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI2proto.h>
|
#include <X11/extensions/XI2proto.h>
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,7 @@
|
||||||
* default value.
|
* default value.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h> /* for inputstr.h */
|
#include <X11/X.h> /* for inputstr.h */
|
||||||
#include <X11/Xproto.h> /* Request macro */
|
#include <X11/Xproto.h> /* Request macro */
|
||||||
|
|
|
@ -28,9 +28,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/extensions/XI2.h>
|
#include <X11/extensions/XI2.h>
|
||||||
#include <X11/extensions/XI2proto.h>
|
#include <X11/extensions/XI2proto.h>
|
||||||
|
|
|
@ -29,15 +29,14 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h> /* for inputstr.h */
|
#include <X11/X.h> /* for inputstr.h */
|
||||||
#include <X11/Xproto.h> /* Request macro */
|
#include <X11/Xproto.h> /* Request macro */
|
||||||
#include <X11/extensions/XI.h>
|
#include <X11/extensions/XI.h>
|
||||||
#include <X11/extensions/XI2proto.h>
|
#include <X11/extensions/XI2proto.h>
|
||||||
|
|
||||||
|
#include "dix/cursor_priv.h"
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
|
||||||
#include "inputstr.h" /* DeviceIntPtr */
|
#include "inputstr.h" /* DeviceIntPtr */
|
||||||
|
|
|
@ -41,9 +41,7 @@
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
|
|
||||||
|
|
|
@ -41,14 +41,15 @@
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
|
Bool noCompositeExtension = FALSE;
|
||||||
|
|
||||||
static CARD8 CompositeReqCode;
|
static CARD8 CompositeReqCode;
|
||||||
static DevPrivateKeyRec CompositeClientPrivateKeyRec;
|
static DevPrivateKeyRec CompositeClientPrivateKeyRec;
|
||||||
|
@ -589,7 +590,7 @@ CompositeExtensionInit(void)
|
||||||
noCompositeExtension = FALSE;
|
noCompositeExtension = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
|
|
||||||
int (*PanoramiXSaveCompositeVector[CompositeNumberRequests]) (ClientPtr);
|
int (*PanoramiXSaveCompositeVector[CompositeNumberRequests]) (ClientPtr);
|
||||||
|
@ -942,4 +943,4 @@ PanoramiXCompositeReset(void)
|
||||||
ProcCompositeVector[i] = PanoramiXSaveCompositeVector[i];
|
ProcCompositeVector[i] = PanoramiXSaveCompositeVector[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
|
@ -41,9 +41,7 @@
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
|
||||||
|
|
|
@ -41,16 +41,14 @@
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Delete the given overlay client list element from its screen list.
|
* Delete the given overlay client list element from its screen list.
|
||||||
|
@ -135,14 +133,14 @@ compCreateOverlayWindow(ScreenPtr pScreen)
|
||||||
int h = pScreen->height;
|
int h = pScreen->height;
|
||||||
int x = 0, y = 0;
|
int x = 0, y = 0;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
x = -pScreen->x;
|
x = -pScreen->x;
|
||||||
y = -pScreen->y;
|
y = -pScreen->y;
|
||||||
w = PanoramiXPixWidth;
|
w = PanoramiXPixWidth;
|
||||||
h = PanoramiXPixHeight;
|
h = PanoramiXPixHeight;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
pWin = cs->pOverlayWin =
|
pWin = cs->pOverlayWin =
|
||||||
CreateWindow(cs->overlayWid, pRoot, x, y, w, h, 0,
|
CreateWindow(cs->overlayWid, pRoot, x, y, w, h, 0,
|
||||||
|
|
|
@ -41,9 +41,7 @@
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
#include "os/osdep.h"
|
#include "os/osdep.h"
|
||||||
|
@ -51,9 +49,9 @@
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#include "compositeext_priv.h"
|
#include "compositeext_priv.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
#ifdef COMPOSITE_DEBUG
|
#ifdef COMPOSITE_DEBUG
|
||||||
static int
|
static int
|
||||||
|
@ -203,12 +201,12 @@ updateOverlayWindow(ScreenPtr pScreen)
|
||||||
int w = pScreen->width;
|
int w = pScreen->width;
|
||||||
int h = pScreen->height;
|
int h = pScreen->height;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
w = PanoramiXPixWidth;
|
w = PanoramiXPixWidth;
|
||||||
h = PanoramiXPixHeight;
|
h = PanoramiXPixHeight;
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
cs = GetCompScreen(pScreen);
|
cs = GetCompScreen(pScreen);
|
||||||
if ((pWin = cs->pOverlayWin) != NULL) {
|
if ((pWin = cs->pOverlayWin) != NULL) {
|
||||||
|
|
|
@ -23,16 +23,17 @@
|
||||||
* Author: Daniel Stone <daniel@fooishbar.org>
|
* Author: Daniel Stone <daniel@fooishbar.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include "config/hotplug_priv.h"
|
||||||
|
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "hotplug.h"
|
|
||||||
#include "config-backends.h"
|
#include "config-backends.h"
|
||||||
#include "systemd-logind.h"
|
|
||||||
|
#include "../hw/xfree86/os-support/linux/systemd-logind.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
config_pre_init(void)
|
config_pre_init(void)
|
||||||
|
@ -133,7 +134,7 @@ struct OdevAttributes *
|
||||||
config_odev_allocate_attributes(void)
|
config_odev_allocate_attributes(void)
|
||||||
{
|
{
|
||||||
struct OdevAttributes *attribs =
|
struct OdevAttributes *attribs =
|
||||||
xnfcalloc(1, sizeof (struct OdevAttributes));
|
XNFcallocarray(1, sizeof (struct OdevAttributes));
|
||||||
attribs->fd = -1;
|
attribs->fd = -1;
|
||||||
return attribs;
|
return attribs;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,9 +23,7 @@
|
||||||
* Author: Daniel Stone <daniel@fooishbar.org>
|
* Author: Daniel Stone <daniel@fooishbar.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <dbus/dbus.h>
|
#include <dbus/dbus.h>
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
|
|
@ -0,0 +1,64 @@
|
||||||
|
/* SPDX-License-Identifier: MIT OR X11
|
||||||
|
*
|
||||||
|
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
||||||
|
* Copyright © 2006-2007 Daniel Stone
|
||||||
|
*/
|
||||||
|
#ifndef _XSERVER_HOTPLUG_PRIV_H
|
||||||
|
#define _XSERVER_HOTPLUG_PRIV_H
|
||||||
|
|
||||||
|
#include <X11/Xfuncproto.h>
|
||||||
|
|
||||||
|
#include "hotplug.h"
|
||||||
|
#include "list.h"
|
||||||
|
|
||||||
|
/* Bump this each time you add something to the struct
|
||||||
|
* so that drivers can easily tell what is available
|
||||||
|
*/
|
||||||
|
#define ODEV_ATTRIBUTES_VERSION 1
|
||||||
|
|
||||||
|
struct OdevAttributes {
|
||||||
|
/* path to kernel device node - Linux e.g. /dev/dri/card0 */
|
||||||
|
char *path;
|
||||||
|
|
||||||
|
/* system device path - Linux e.g. /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1 */
|
||||||
|
char *syspath;
|
||||||
|
|
||||||
|
/* DRI-style bus id */
|
||||||
|
char *busid;
|
||||||
|
|
||||||
|
/* Server managed FD */
|
||||||
|
int fd;
|
||||||
|
|
||||||
|
/* Major number of the device node pointed to by ODEV_ATTRIB_PATH */
|
||||||
|
int major;
|
||||||
|
|
||||||
|
/* Minor number of the device node pointed to by ODEV_ATTRIB_PATH */
|
||||||
|
int minor;
|
||||||
|
|
||||||
|
/* kernel driver name */
|
||||||
|
char *driver;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Note starting with xserver 1.16 this function never fails */
|
||||||
|
struct OdevAttributes *
|
||||||
|
config_odev_allocate_attributes(void);
|
||||||
|
|
||||||
|
void
|
||||||
|
config_odev_free_attributes(struct OdevAttributes *attribs);
|
||||||
|
|
||||||
|
typedef void (*config_odev_probe_proc_ptr)(struct OdevAttributes *attribs);
|
||||||
|
void config_odev_probe(config_odev_probe_proc_ptr probe_callback);
|
||||||
|
|
||||||
|
#ifdef CONFIG_UDEV_KMS
|
||||||
|
void NewGPUDeviceRequest(struct OdevAttributes *attribs);
|
||||||
|
void DeleteGPUDeviceRequest(struct OdevAttributes *attribs);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define ServerIsNotSeat0() (SeatId && strcmp(SeatId, "seat0"))
|
||||||
|
|
||||||
|
struct xf86_platform_device *
|
||||||
|
xf86_find_platform_device_by_devnum(int major, int minor);
|
||||||
|
|
||||||
|
void config_pre_init(void);
|
||||||
|
|
||||||
|
#endif /* _XSERVER_HOTPLUG_PRIV_H */
|
|
@ -23,21 +23,21 @@
|
||||||
* Author: Julien Cristau <jcristau@debian.org>
|
* Author: Julien Cristau <jcristau@debian.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <libudev.h>
|
#include <libudev.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include "config/hotplug_priv.h"
|
||||||
|
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "hotplug.h"
|
|
||||||
#include "config-backends.h"
|
#include "config-backends.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "systemd-logind.h"
|
|
||||||
|
#include "../hw/xfree86/os-support/linux/systemd-logind.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_SYSMACROS_H
|
#ifdef HAVE_SYS_SYSMACROS_H
|
||||||
#include <sys/sysmacros.h>
|
#include <sys/sysmacros.h>
|
||||||
|
|
|
@ -21,9 +21,7 @@
|
||||||
* DEALINGS IN THE SOFTWARE.
|
* DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <dev/wscons/wsconsio.h>
|
#include <dev/wscons/wsconsio.h>
|
||||||
|
|
|
@ -21,19 +21,17 @@
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "damageextint.h"
|
#include "damageextint.h"
|
||||||
#include "damagestr.h"
|
#include "damagestr.h"
|
||||||
#include "protocol-versions.h"
|
#include "protocol-versions.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "dixstruct_priv.h"
|
#include "dixstruct_priv.h"
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
#include "panoramiX.h"
|
#include "panoramiX.h"
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
|
|
||||||
|
@ -45,7 +43,7 @@ typedef struct {
|
||||||
static RESTYPE XRT_DAMAGE;
|
static RESTYPE XRT_DAMAGE;
|
||||||
static int (*PanoramiXSaveDamageCreate) (ClientPtr);
|
static int (*PanoramiXSaveDamageCreate) (ClientPtr);
|
||||||
|
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
static unsigned char DamageReqCode;
|
static unsigned char DamageReqCode;
|
||||||
static int DamageEventBase;
|
static int DamageEventBase;
|
||||||
|
@ -55,6 +53,8 @@ static DevPrivateKeyRec DamageClientPrivateKeyRec;
|
||||||
|
|
||||||
#define DamageClientPrivateKey (&DamageClientPrivateKeyRec)
|
#define DamageClientPrivateKey (&DamageClientPrivateKeyRec)
|
||||||
|
|
||||||
|
Bool noDamageExtension = FALSE;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
DamageNoteCritical(ClientPtr pClient)
|
DamageNoteCritical(ClientPtr pClient)
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,7 @@ DamageNoteCritical(ClientPtr pClient)
|
||||||
static void
|
static void
|
||||||
damageGetGeometry(DrawablePtr draw, int *x, int *y, int *w, int *h)
|
damageGetGeometry(DrawablePtr draw, int *x, int *y, int *w, int *h)
|
||||||
{
|
{
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension && draw->type == DRAWABLE_WINDOW) {
|
if (!noPanoramiXExtension && draw->type == DRAWABLE_WINDOW) {
|
||||||
WindowPtr win = (WindowPtr)draw;
|
WindowPtr win = (WindowPtr)draw;
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ damageGetGeometry(DrawablePtr draw, int *x, int *y, int *w, int *h)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
*x = draw->x;
|
*x = draw->x;
|
||||||
*y = draw->y;
|
*y = draw->y;
|
||||||
|
@ -321,7 +321,7 @@ ProcDamageDestroy(ClientPtr client)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
static RegionPtr
|
static RegionPtr
|
||||||
DamageExtSubtractWindowClip(DamageExtPtr pDamageExt)
|
DamageExtSubtractWindowClip(DamageExtPtr pDamageExt)
|
||||||
{
|
{
|
||||||
|
@ -369,7 +369,7 @@ DamageExtFreeWindowClip(RegionPtr reg)
|
||||||
if (reg != &PanoramiXScreenRegion)
|
if (reg != &PanoramiXScreenRegion)
|
||||||
RegionDestroy(reg);
|
RegionDestroy(reg);
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DamageSubtract intersects with borderClip, so we must reconstruct the
|
* DamageSubtract intersects with borderClip, so we must reconstruct the
|
||||||
|
@ -380,7 +380,7 @@ DamageExtSubtract(DamageExtPtr pDamageExt, const RegionPtr pRegion)
|
||||||
{
|
{
|
||||||
DamagePtr pDamage = pDamageExt->pDamage;
|
DamagePtr pDamage = pDamageExt->pDamage;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
RegionPtr damage = DamageRegion(pDamage);
|
RegionPtr damage = DamageRegion(pDamage);
|
||||||
RegionSubtract(damage, damage, pRegion);
|
RegionSubtract(damage, damage, pRegion);
|
||||||
|
@ -398,7 +398,7 @@ DamageExtSubtract(DamageExtPtr pDamageExt, const RegionPtr pRegion)
|
||||||
|
|
||||||
return RegionNotEmpty(damage);
|
return RegionNotEmpty(damage);
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
return DamageSubtract(pDamage, pRegion);
|
return DamageSubtract(pDamage, pRegion);
|
||||||
}
|
}
|
||||||
|
@ -606,7 +606,7 @@ SDamageNotifyEvent(xDamageNotifyEvent * from, xDamageNotifyEvent * to)
|
||||||
cpswaps(from->geometry.height, to->geometry.height);
|
cpswaps(from->geometry.height, to->geometry.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
|
|
||||||
static void
|
static void
|
||||||
PanoramiXDamageReport(DamagePtr pDamage, RegionPtr pRegion, void *closure)
|
PanoramiXDamageReport(DamagePtr pDamage, RegionPtr pRegion, void *closure)
|
||||||
|
@ -725,7 +725,7 @@ PanoramiXDamageReset(void)
|
||||||
ProcDamageVector[X_DamageCreate] = PanoramiXSaveDamageCreate;
|
ProcDamageVector[X_DamageCreate] = PanoramiXSaveDamageCreate;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* PANORAMIX */
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
void
|
void
|
||||||
DamageExtensionInit(void)
|
DamageExtensionInit(void)
|
||||||
|
@ -754,10 +754,10 @@ DamageExtensionInit(void)
|
||||||
(EventSwapPtr) SDamageNotifyEvent;
|
(EventSwapPtr) SDamageNotifyEvent;
|
||||||
SetResourceTypeErrorValue(DamageExtType,
|
SetResourceTypeErrorValue(DamageExtType,
|
||||||
extEntry->errorBase + BadDamage);
|
extEntry->errorBase + BadDamage);
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (XRT_DAMAGE)
|
if (XRT_DAMAGE)
|
||||||
SetResourceTypeErrorValue(XRT_DAMAGE,
|
SetResourceTypeErrorValue(XRT_DAMAGE,
|
||||||
extEntry->errorBase + BadDamage);
|
extEntry->errorBase + BadDamage);
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,13 +29,15 @@
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
#include <X11/extensions/damageproto.h>
|
||||||
|
|
||||||
|
#include "dix/selection_priv.h"
|
||||||
|
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include <X11/extensions/damageproto.h>
|
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "selection.h"
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "damage.h"
|
#include "damage.h"
|
||||||
#include "xfixes.h"
|
#include "xfixes.h"
|
||||||
|
|
|
@ -32,9 +32,7 @@
|
||||||
|
|
||||||
/* INCLUDES */
|
/* INCLUDES */
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -42,10 +40,10 @@
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
|
||||||
#include "dix/dix_priv.h"
|
#include "dix/dix_priv.h"
|
||||||
|
#include "miext/extinit_priv.h"
|
||||||
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "extnsionst.h"
|
#include "extnsionst.h"
|
||||||
#include "extinit_priv.h"
|
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#include "dbestruct.h"
|
#include "dbestruct.h"
|
||||||
|
@ -53,6 +51,7 @@
|
||||||
#include "xace.h"
|
#include "xace.h"
|
||||||
|
|
||||||
/* GLOBALS */
|
/* GLOBALS */
|
||||||
|
Bool noDbeExtension = FALSE;
|
||||||
|
|
||||||
/* These are globals for use by DDX */
|
/* These are globals for use by DDX */
|
||||||
DevPrivateKeyRec dbeScreenPrivKeyRec;
|
DevPrivateKeyRec dbeScreenPrivKeyRec;
|
||||||
|
@ -1369,10 +1368,10 @@ DbeExtensionInit(void)
|
||||||
int nStubbedScreens = 0;
|
int nStubbedScreens = 0;
|
||||||
Bool ddxInitSuccess;
|
Bool ddxInitSuccess;
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension)
|
if (!noPanoramiXExtension)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
/* Create the resource types. */
|
/* Create the resource types. */
|
||||||
dbeDrawableResType =
|
dbeDrawableResType =
|
||||||
|
|
|
@ -32,9 +32,7 @@
|
||||||
|
|
||||||
/* INCLUDES */
|
/* INCLUDES */
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xproto.h>
|
#include <X11/Xproto.h>
|
||||||
|
|
|
@ -44,9 +44,7 @@ SOFTWARE.
|
||||||
|
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/X.h>
|
#include <X11/X.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
|
|
||||||
#include "callback.h"
|
#include "callback.h"
|
||||||
|
|
||||||
typedef struct _CallbackList *CallbackListPtr;
|
|
||||||
|
|
||||||
void InitCallbackManager(void);
|
void InitCallbackManager(void);
|
||||||
void DeleteCallbackManager(void);
|
void DeleteCallbackManager(void);
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ typedef struct _LFclosure {
|
||||||
typedef struct _PTclosure {
|
typedef struct _PTclosure {
|
||||||
ClientPtr client;
|
ClientPtr client;
|
||||||
DrawablePtr pDraw;
|
DrawablePtr pDraw;
|
||||||
GC *pGC;
|
GCPtr pGC;
|
||||||
unsigned char *pElt;
|
unsigned char *pElt;
|
||||||
unsigned char *endReq;
|
unsigned char *endReq;
|
||||||
unsigned char *data;
|
unsigned char *data;
|
||||||
|
@ -115,7 +115,7 @@ typedef struct _PTclosure {
|
||||||
typedef struct _ITclosure {
|
typedef struct _ITclosure {
|
||||||
ClientPtr client;
|
ClientPtr client;
|
||||||
DrawablePtr pDraw;
|
DrawablePtr pDraw;
|
||||||
GC *pGC;
|
GCPtr pGC;
|
||||||
BYTE nChars;
|
BYTE nChars;
|
||||||
unsigned char *data;
|
unsigned char *data;
|
||||||
int xorg;
|
int xorg;
|
||||||
|
|
|
@ -44,9 +44,7 @@ SOFTWARE.
|
||||||
|
|
||||||
******************************************************************/
|
******************************************************************/
|
||||||
|
|
||||||
#ifdef HAVE_DIX_CONFIG_H
|
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue