diff options
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/xen-kbdfront.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/input/xen-kbdfront.c b/drivers/input/xen-kbdfront.c index eaf69cf5b444..9ce3b3baf3a2 100644 --- a/drivers/input/xen-kbdfront.c +++ b/drivers/input/xen-kbdfront.c | |||
@@ -300,6 +300,16 @@ InitWait: | |||
300 | */ | 300 | */ |
301 | if (dev->state != XenbusStateConnected) | 301 | if (dev->state != XenbusStateConnected) |
302 | goto InitWait; /* no InitWait seen yet, fudge it */ | 302 | goto InitWait; /* no InitWait seen yet, fudge it */ |
303 | |||
304 | /* Set input abs params to match backend screen res */ | ||
305 | if (xenbus_scanf(XBT_NIL, info->xbdev->otherend, | ||
306 | "width", "%d", &val) > 0) | ||
307 | input_set_abs_params(info->ptr, ABS_X, 0, val, 0, 0); | ||
308 | |||
309 | if (xenbus_scanf(XBT_NIL, info->xbdev->otherend, | ||
310 | "height", "%d", &val) > 0) | ||
311 | input_set_abs_params(info->ptr, ABS_Y, 0, val, 0, 0); | ||
312 | |||
303 | break; | 313 | break; |
304 | 314 | ||
305 | case XenbusStateClosing: | 315 | case XenbusStateClosing: |