rotation: exclude client which is placed out of screen(zone) from a list of rotation... 36/101636/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 1 Dec 2016 23:31:07 +0000 (08:31 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 1 Dec 2016 23:31:07 +0000 (08:31 +0900)
Change-Id: I44900da7ab143ee03c97f7e8a4f8b5fe6105781e

src/rotation/e_mod_rotation_wl.c

index 8171dce..87d3cae 100644 (file)
@@ -586,6 +586,7 @@ _e_client_rotation_zone_set(E_Zone *zone, E_Client *include_ec, E_Client *exclud
         if ((ec != include_ec) && (!evas_object_visible_get(ec->frame))) continue;
         if (e_object_is_del(E_OBJECT(ec))) continue;
         if ((ec->comp_data) && (ec->comp_data->sub.data)) continue;
+        if (!E_INTERSECTS(ec->x, ec->y, ec->w, ec->h, zone->x, zone->y, zone->w, zone->h)) continue;
         if (!e_util_strcmp("wl_pointer-cursor", ec->icccm.window_role))
           {
              e_client_cursor_map_apply(ec, zone->rot.curr, ec->x, ec->y);