editor: Fix cursor positioning with pointer and touch
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 8 May 2014 11:55:50 +0000 (14:55 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 9 May 2014 22:32:20 +0000 (15:32 -0700)
commit8e37d96bf70f59e062f7b703c328a00f663021b0
tree98ad2a9257c167ae88b2186161cffa7cce9bd842
parentf9a2626cb1be298b297ed0e07b56e1a12335c2b5
editor: Fix cursor positioning with pointer and touch

The calculation off the vertical offset between the widget coordinates
and where the text was rendered was wrong. It was using the constant for
horizontal offset for that too.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=78411
clients/editor.c