diff options
author | Matthieu Herrb <matthieu@openbsd.org> | 2009-11-26 10:57:35 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@openbsd.org> | 2009-11-26 10:57:35 +0000 |
commit | b5eece8397ff0806e34610c375c4bea0208fb889 (patch) | |
tree | a176f98efefde04a53728bf4c043145c54b2bd71 | |
parent | 83ca9fec3b710cce807faf91d4a5a54b9031c8c0 (diff) |
Set resx/resy fields of the wscons calibration structure to the saved
values when the calibration properties change.
-rw-r--r-- | src/ws.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)); |