summaryrefslogtreecommitdiff
path: root/meta/packages/xorg-lib/libxcalibrate/fix-xcb.patch
blob: 0d7efc70f3e7e460ec1edd56a5469ff2925090a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
There is no extra reply data and if we say not to disgard it, xcb
throws fatal asserts.

RP - 26/11/09

Index: git/xcalibrate.c
===================================================================
--- git.orig/xcalibrate.c	2009-11-26 08:11:48.000000000 +0000
+++ git/xcalibrate.c	2009-11-26 08:09:55.000000000 +0000
@@ -216,7 +216,7 @@
   req->reqType = info->codes->major_opcode;
   req->xCalibrateReqType = X_XCalibrateRawMode;
   req->on = enable;
-  if (!_XReply (dpy, (xReply *) &rep, 0, xFalse)) 
+  if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) 
     {
       UnlockDisplay (dpy);
       SyncHandle ();
@@ -240,7 +240,7 @@
   req->xCalibrateReqType = X_XCalibrateScreenToCoord;
   req->x = *x;
   req->y = *y;
-  if (!_XReply (dpy, (xReply *) &rep, 0, xFalse)) 
+  if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) 
     {
       UnlockDisplay (dpy);
       SyncHandle ();