simplify and clarify winlist directional selection action code

in the case where no prev/next direction is specified a navigational
direction will always be specified

CID 1347403
This commit is contained in:
Mike Blumenkrantz 2016-01-07 15:19:20 -05:00
parent 11cc32b7a6
commit 99335628a8
1 changed files with 2 additions and 5 deletions

View File

@ -155,11 +155,8 @@ _e_mod_action_winlist_cb_helper(E_Object *obj EINA_UNUSED, const char *params, i
e_winlist_next();
else if (direction == -1)
e_winlist_prev();
if (direction) return;
if (udlr == -1) return;
e_winlist_direction_select(zone, udlr);
else
e_winlist_direction_select(zone, udlr);
}
static void