summaryrefslogtreecommitdiff
path: root/Xext/panoramiXsrv.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-23 13:38:37 +0900
committerKeith Packard <keithp@keithp.com>2011-03-23 13:38:37 +0900
commit03f45df93469f6aef391e97007b9614e0770cc4c (patch)
tree3cfde05ac25184ebdf70c66a51baf8019c69977e /Xext/panoramiXsrv.h
parentefcb7275ce5de651f91ba4ff8bb227dfb68bb154 (diff)
parent5fb329a04a18835ce864d0563f6dfeb3d3c78d69 (diff)
Merge remote-tracking branch 'airlied/xinerama-cleanup'
Diffstat (limited to 'Xext/panoramiXsrv.h')
-rw-r--r--Xext/panoramiXsrv.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Xext/panoramiXsrv.h b/Xext/panoramiXsrv.h
index 9751feb54..6fc903b88 100644
--- a/Xext/panoramiXsrv.h
+++ b/Xext/panoramiXsrv.h
@@ -51,4 +51,15 @@ extern _X_EXPORT void XineramaGetImageData(
Bool isRoot
);
+static inline void panoramix_setup_ids(PanoramiXRes *resource,
+ ClientPtr client, XID base_id)
+{
+ int j;
+
+ resource->info[0].id = base_id;
+ FOR_NSCREENS_FORWARD_SKIP(j) {
+ resource->info[j].id = FakeClientID(client->index);
+ }
+}
+
#endif /* _PANORAMIXSRV_H_ */