From ce6d15ecfa7c5cc0b5e729bb811f6efdebf74504 Mon Sep 17 00:00:00 2001 From: Duna Oh Date: Thu, 23 Jun 2016 13:13:25 +0900 Subject: [PATCH] e_client: unset evas_map for cursor rotation if angle is not 90/180/270 Change-Id: I52b15cea7bfb7af52620df2f745980c558eba195 Signed-off-by: Duna Oh --- src/bin/e_client.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 060c354..7c91021 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -5316,6 +5316,15 @@ e_client_cursor_map_apply(E_Client *ec, int rotation, int x, int y) double awh = ((double)zone_w / (double)zone_h); double ahw = ((double)zone_h / (double)zone_w); + if ((rotation == 0) || (rotation % 90 != 0) || (rotation / 90 > 3)) + { + evas_object_map_set(ec->frame, NULL); + evas_object_map_enable_set(ec->frame, EINA_FALSE); + evas_object_move(ec->frame, x, y); + + return; + } + evas_object_geometry_get(ec->frame, NULL, NULL, &cursor_w, &cursor_h); width = cursor_w; height = cursor_h; -- 2.7.4