summaryrefslogtreecommitdiff
path: root/src/Font.c
diff options
context:
space:
mode:
authorChristian Linhart <chris@demorecorder.com>2015-09-07 17:17:32 +0200
committerAdam Jackson <ajax@redhat.com>2015-09-21 12:46:55 -0400
commita72d2d06c002b644b7040a0a9936c8525e092ba8 (patch)
tree5672e758c9c3c604a184b48c2946455ec2d894cb /src/Font.c
parent58af066a764305c506efea7065ef7679369a1a98 (diff)
fix for Xlib 32-bit request number issues
Make use of the new 64-bit sequence number API in XCB 1.11.1 to avoid the 32-bit sequence number wrap in libX11. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71338 Signed-off-by: Christian Linhart <chris@demorecorder.com> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/Font.c')
-rw-r--r--src/Font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Font.c b/src/Font.c
index 650bc6f6..a73f9b19 100644
--- a/src/Font.c
+++ b/src/Font.c
@@ -105,7 +105,7 @@ XFontStruct *XLoadQueryFont(
return font_result;
LockDisplay(dpy);
GetReq(OpenFont, req);
- seq = dpy->request;
+ seq = dpy->request; /* Can't use extended sequence number here */
nbytes = req->nbytes = name ? strlen(name) : 0;
req->fid = fid = XAllocID(dpy);
req->length += (nbytes+3)>>2;