summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-02-24 20:30:03 -0500
committerAdam Jackson <ajax@redhat.com>2008-02-24 20:30:50 -0500
commit7c169beed2d8324c95385d248777f21c721b332e (patch)
tree6b74f5d4d63533eddc3d4c5fc541d84e4792458f
parent52040eaaba626dd998f7a5421a923de0b0e06ad2 (diff)
Bug #13660: XineramaQueryScreens() always modifies the 'number' outparameter.
This makes the code match the man page.
-rw-r--r--src/Xinerama.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Xinerama.c b/src/Xinerama.c
index fa2b197..eff7633 100644
--- a/src/Xinerama.c
+++ b/src/Xinerama.c
@@ -307,12 +307,11 @@ XineramaQueryScreens(
*number = rep.number;
} else
_XEatData(dpy, rep.length << 2);
+ } else {
+ *number = 0;
}
UnlockDisplay (dpy);
SyncHandle ();
return scrnInfo;
}
-
-
-