use relative window coords when setting up desk transitions; fixes animations with...
authorMike Blumenkrantz <m.blumenkran@samsung.com>
Thu, 23 May 2013 10:06:11 +0000 (11:06 +0100)
committerMike Blumenkrantz <m.blumenkran@samsung.com>
Thu, 23 May 2013 10:06:11 +0000 (11:06 +0100)
src/bin/e_desk.c

index bffebe5..0df8e0a 100644 (file)
@@ -721,7 +721,7 @@ _e_desk_transition_setup(E_Border *bd, int dx, int dy, int state)
    if (e_config->desk_flip_animate_type)
      {
         /* set geoms */
-        e_comp_win_effect_params_set(bd->cw, 1, (int[]){bd->x, bd->y, bd->w, bd->h, bd->zone->w, bd->zone->h, dx, dy}, 8);
+        e_comp_win_effect_params_set(bd->cw, 1, (int[]){bd->x - bd->zone->x, bd->y - bd->zone->y, bd->w, bd->h, bd->zone->w, bd->zone->h, dx, dy}, 8);
         e_comp_win_effect_params_set(bd->cw, 0, (int[]){state}, 1);
      }