summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@openbsd.org>2009-11-26 10:57:35 +0000
committerMatthieu Herrb <matthieu@openbsd.org>2009-11-26 10:57:35 +0000
commitb5eece8397ff0806e34610c375c4bea0208fb889 (patch)
treea176f98efefde04a53728bf4c043145c54b2bd71
parent83ca9fec3b710cce807faf91d4a5a54b9031c8c0 (diff)
Set resx/resy fields of the wscons calibration structure to the saved
values when the calibration properties change.
-rw-r--r--src/ws.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ws.c b/src/ws.c
index 9057d9e..c312414 100644
--- a/src/ws.c
+++ b/src/ws.c
@@ -891,6 +891,8 @@ wsSetProperty(DeviceIntPtr device, Atom atom, XIPropertyValuePtr val,
coords.maxy = priv->max_y;
coords.swapxy = priv->swap_axes;
coords.samplelen = priv->raw;
+ coords.resx = priv->coords.resx;
+ coords.resy = priv->coords.resy;
if (ioctl(pInfo->fd, WSMOUSEIO_SCALIBCOORDS, &coords) != 0) {
xf86Msg(X_ERROR, "SCALIBCOORDS failed %s\n",
strerror(errno));