Skip to content

Commit

Permalink
Border: unshaded respect noframe border now
Browse files Browse the repository at this point in the history
  • Loading branch information
thewaiter committed May 22, 2021
1 parent eed1e42 commit 0755652
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/bin/e_border.c
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,10 @@ e_border_unshade(E_Border *bd,
bd->shaded = 0;
bd->changes.shaded = 1;
bd->changed = 1;
edje_object_signal_emit(bd->bg_object, "e,state,unshaded", "e");
if (!e_config->border_frame)
edje_object_signal_emit(bd->bg_object, "e,state,unshaded", "e");
else
edje_object_signal_emit(bd->bg_object, "e,state,unshaded,noframe", "e");
e_border_frame_recalc(bd);
ev = E_NEW(E_Event_Border_Resize, 1);
ev->border = bd;
Expand Down Expand Up @@ -9592,9 +9595,16 @@ _e_border_shade_animator(void *data)
bd->shade.anim = NULL;

if (bd->shaded)
{
edje_object_signal_emit(bd->bg_object, "e,state,shaded", "e");
}
else
edje_object_signal_emit(bd->bg_object, "e,state,unshaded", "e");
{
if (!e_config->border_frame)
edje_object_signal_emit(bd->bg_object, "e,state,unshaded", "e");
else
edje_object_signal_emit(bd->bg_object, "e,state,unshaded,noframe", "e");
}
edje_object_message_signal_process(bd->bg_object);
e_border_frame_recalc(bd);

Expand Down

0 comments on commit 0755652

Please sign in to comment.