summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Martin <daniel.martin@secunet.com>2012-06-13 09:40:14 +0200
committerJeremy Huddleston <jeremyhu@apple.com>2012-06-15 00:31:42 -0700
commitad48dc6eb98776a8a886f26f31c0110352fa1da4 (patch)
treee8d40170d42b8f1d7a934bd97ed379fb313eb67a /src
parenta438098e6f641b6f22a1f207b974ceb0e28ddda3 (diff)
Fix return check of XShmQueryExtension
XShmQueryExtension returns true if it is supported. Due to a missing "!" within the if clause the assumption was that there is no MIT-SHM even if it was. Regression-from: 26f6ab7cbc4d1d7fcd1de71697d42af97acdf932 Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Daniel Martin <daniel.martin@secunet.com>
Diffstat (limited to 'src')
-rw-r--r--src/xlibclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xlibclient.c b/src/xlibclient.c
index f58106a..1aa3590 100644
--- a/src/xlibclient.c
+++ b/src/xlibclient.c
@@ -100,7 +100,7 @@ NestedClientTryXShm(NestedClientPrivatePtr pPriv, int scrnIndex, int width, int
int shmMajor, shmMinor;
Bool hasSharedPixmaps;
- if (XShmQueryExtension(pPriv->display)) {
+ if (!XShmQueryExtension(pPriv->display)) {
xf86DrvMsg(scrnIndex, X_INFO, "XShmQueryExtension failed. Dropping XShm support.\n");
return FALSE;