libXinerama: Changes to 'master'
Adam Jackson
ajax at kemper.freedesktop.org
Tue Jan 24 14:40:49 UTC 2017
src/Xinerama.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 1142dd023acaac3cad96137aaf24c45b260e3ecd
Author: Tobias Stoeckmann <tobias at stoeckmann.org>
Date: Sun Jan 22 15:18:04 2017 +0100
libXinerama: Set number of screens to 0 on error
The documentation of XineramaQueryScreens states that number is always
set to the amount of screens in the returned array, but if the
communication with the X server fails, NULL is returned without
modifying number.
At least dwm relies on the fact that number is set to 0 on error, i.e.
when NULL is returned. As a NULL pointer contains 0 elements and the
documentation states that number contains the amount of elements of the
returned array, I think this should be fixed inside libXinerama.
Reviewed-by: Adam Jackson <ajax at redhat.com>
More information about the xorg-commit
mailing list