e_client: unset evas_map for cursor rotation if angle is not 90/180/270 56/76156/5
authorDuna Oh <duna.oh@samsung.com>
Thu, 23 Jun 2016 04:13:25 +0000 (13:13 +0900)
committerDuna Oh <duna.oh@samsung.com>
Fri, 24 Jun 2016 04:40:58 +0000 (13:40 +0900)
Change-Id: I52b15cea7bfb7af52620df2f745980c558eba195
Signed-off-by: Duna Oh <duna.oh@samsung.com>
src/bin/e_client.c

index 060c354..7c91021 100644 (file)
@@ -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;