set 'starting' flag for desk show in e_zone_desk_count_set()

as a result of earlier changes which prevented recursive desk flips,
e_desk_show() now rejects some desk show calls which are invalid such as
a show where the "current" desk does not have the visible flag set. this
behavior is overridden in the case of startup, which is functionally the
same effect as changing the desk count

fix T2717
This commit is contained in:
Mike Blumenkrantz 2015-09-11 12:57:15 -04:00
parent b79fde5de7
commit 2f3c0c2930
1 changed files with 4 additions and 0 deletions

View File

@ -720,8 +720,12 @@ e_zone_desk_count_set(E_Zone *zone,
desk = e_desk_current_get(zone);
if (desk)
{
/* need to simulate "startup" conditions to force desk show to reevaluate here */
int s = starting;
desk->visible = 0;
starting = 1;
e_desk_show(desk);
starting = s;
}
e_zone_edge_flip_eval(zone);