[PATCH xf86-video-nested] Fix return check of XShmQueryExtension

Daniel Martin daniel.martin at secunet.com
Wed Jun 13 00:40:14 PDT 2012


Hi,

here's a small patch, just one character ...

greetings, Daniel

---8<---

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.
---
 src/xlibclient.c |    2 +-
 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;
-- 
1.7.5.4



More information about the xorg-devel mailing list