summaryrefslogtreecommitdiff
path: root/driver/xf86-input-ws/src/ws.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-11-26 10:57:36 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-11-26 10:57:36 +0000
commit08014ab3caeaa1ebc45a99376ca5318f17a84476 (patch)
treefc462e098f31093737675f860d1127d6aeb3c7ba /driver/xf86-input-ws/src/ws.c
parent7b479ae8cca5e5d67d2aa87805dcfc77b10a516c (diff)
Set resx/resy fields of the wscons calibration structure to the saved
values when the calibration properties change.
Diffstat (limited to 'driver/xf86-input-ws/src/ws.c')
-rw-r--r--driver/xf86-input-ws/src/ws.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/xf86-input-ws/src/ws.c b/driver/xf86-input-ws/src/ws.c
index b4c000375..d6cb36948 100644
--- a/driver/xf86-input-ws/src/ws.c
+++ b/driver/xf86-input-ws/src/ws.c
@@ -13,7 +13,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $OpenBSD: ws.c,v 1.23 2009/11/25 19:36:57 matthieu Exp $ */
+/* $OpenBSD: ws.c,v 1.24 2009/11/26 10:57:35 matthieu Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -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));