From: Mike Blumenkrantz Date: Tue, 7 May 2013 09:14:05 +0000 (+0100) Subject: leave britney^Wgravity alone (during shading)! X-Git-Tag: submit/efl/20131021.015651~701 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a8316de7568723ec0dd1bf455ee0ec2b4589da0;p=platform%2Fupstream%2Fenlightenment.git leave britney^Wgravity alone (during shading)! --- diff --git a/src/bin/e_border.c b/src/bin/e_border.c index aef5ac2..be2d4b4 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -2311,18 +2311,6 @@ e_border_shade(E_Border *bd, bd->changes.shading = 1; BD_CHANGED(bd); - if (bd->shade.dir == E_DIRECTION_UP || - bd->shade.dir == E_DIRECTION_LEFT) - { - ecore_x_window_gravity_set(bd->client.win, ECORE_X_GRAVITY_SW); - if (bd->client.lock_win) ecore_x_window_gravity_set(bd->client.lock_win, ECORE_X_GRAVITY_SW); - } - else - { - ecore_x_window_gravity_set(bd->client.win, ECORE_X_GRAVITY_NE); - if (bd->client.lock_win) ecore_x_window_gravity_set(bd->client.lock_win, ECORE_X_GRAVITY_NE); - } - bd->shade.anim = ecore_animator_add(_e_border_shade_animator, bd); edje_object_signal_emit(bd->bg_object, "e,state,shading", "e"); } @@ -2415,28 +2403,6 @@ e_border_unshade(E_Border *bd, bd->changes.shading = 1; BD_CHANGED(bd); - if (bd->shade.dir == E_DIRECTION_UP) - { - ecore_x_window_gravity_set(bd->client.win, ECORE_X_GRAVITY_SW); - if (bd->client.lock_win) - { - ecore_x_window_gravity_set(bd->client.lock_win, ECORE_X_GRAVITY_SW); - } - } - else if (bd->shade.dir == E_DIRECTION_LEFT) - { - ecore_x_window_gravity_set(bd->client.win, ECORE_X_GRAVITY_SW); - if (bd->client.lock_win) - { - ecore_x_window_gravity_set(bd->client.lock_win, ECORE_X_GRAVITY_SW); - } - } - else - { - ecore_x_window_gravity_set(bd->client.win, ECORE_X_GRAVITY_NE); - if (bd->client.lock_win) ecore_x_window_gravity_set(bd->client.lock_win, ECORE_X_GRAVITY_NE); - } - bd->shade.anim = ecore_animator_add(_e_border_shade_animator, bd); edje_object_signal_emit(bd->bg_object, "e,state,unshading", "e"); }