text: Split out cursor_position
authorJan Arne Petersen <jpetersen@openismus.com>
Thu, 31 Jan 2013 14:52:23 +0000 (15:52 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 15 Feb 2013 22:08:01 +0000 (17:08 -0500)
commit1cc9e08d2fbd59e34cf5009acd5067a6b171c20a
tree2ca0e325d7c01c357d8d85174b15006054c26ed2
parent964b517c9b39d9655257c3968c32c0fb81be9613
text: Split out cursor_position

Add an extra cursor_position, which also allows to change the anchor
(for slections). Change the index type to int to allow setting it before
the beginning of a commited string.

The cursor should not be moved as a direct repsonse to this event but
atomically on the next commit_string event.

Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
clients/editor.c
clients/keyboard.c
clients/weston-simple-im.c
protocol/input-method.xml
protocol/text.xml
src/text-backend.c