summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/libxcalibrate/fix-xcb.patch
blob: d6148834a67686982c089da599458ad34e3089c6 (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
28
29
Upstream-Status: Pending

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 ();