ecore-imf-wayland: Reduce calls to set_cursor_rectangle
authorChris Michael <cp.michael@samsung.com>
Tue, 28 Feb 2017 15:22:58 +0000 (10:22 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 28 Feb 2017 15:22:58 +0000 (10:22 -0500)
commite6b26d2279059834da42797331ba5fb3f388caf8
tree0726ac0ce7c8f257f99126a8be26a76e21c6cff8
parent5b9374583e3fd450ac53c566095c398f0d6c5cfe
ecore-imf-wayland: Reduce calls to set_cursor_rectangle

Avoid calls to zwp_text_input_v1_set_cursor_rectangle if we do not
need to. Previous code here would always call this function even if
the cursor rectangle was in the same position. Now we set a flag on
the cursor_location field to let us know that it needs updating.

ref T5226

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_imf/wayland/wayland_imcontext.c