diff options
author | Chris Michael <cp.michael@samsung.com> | 2016-10-28 11:27:59 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2016-10-28 12:35:12 -0400 |
commit | 72f2ac2c3a87c95070baae2a4444fa8d78a186ed (patch) | |
tree | 7776855773141139ac47f72b7fd7ed215856d3f6 | |
parent | 860e0d34b0a58cdaf969633249e1a58f166e3970 (diff) | |
download | efl-72f2ac2c3a87c95070baae2a4444fa8d78a186ed.tar.gz |
ecore-wl2: Only call pointer_update_stop once
As we already call _ecore_wl2_input_cursor_update_stop above, we
actually don't need to call it a second time.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/lib/ecore_wl2/ecore_wl2_window.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c index e5a0774ff3..6b0d9cf8a5 100644 --- a/src/lib/ecore_wl2/ecore_wl2_window.c +++ b/src/lib/ecore_wl2/ecore_wl2_window.c @@ -953,9 +953,7 @@ ecore_wl2_window_pointer_set(Ecore_Wl2_Window *window, struct wl_surface *surfac input->cursor.hot_x = hot_x; input->cursor.hot_y = hot_y; - if (!input->cursor.surface) - _ecore_wl2_input_cursor_update_stop(input); - else + if (input->cursor.surface) _ecore_wl2_input_cursor_update(input); } |