mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
libxcalibrate: Fix with xcb
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -0,0 +1,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 ();
|
||||||
@@ -4,8 +4,10 @@ DESCRIPTION = " Touchscreen calibration client library"
|
|||||||
LICENSE = "BSD-X"
|
LICENSE = "BSD-X"
|
||||||
DEPENDS = "virtual/libx11 calibrateproto libxext"
|
DEPENDS = "virtual/libx11 calibrateproto libxext"
|
||||||
PV = "0.0+git${SRCPV}"
|
PV = "0.0+git${SRCPV}"
|
||||||
|
PR = "r1"
|
||||||
|
|
||||||
SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libXCalibrate;protocol=git"
|
SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libXCalibrate;protocol=git \
|
||||||
|
file://fix-xcb.patch;patch=1"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user