discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=2f3c0c29307abd23ed501cdbd48862dba978a046

commit 2f3c0c29307abd23ed501cdbd48862dba978a046
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Sep 11 12:57:15 2015 -0400

    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
---
 src/bin/e_zone.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c
index f8ea2d6..15597d9 100644
--- a/src/bin/e_zone.c
+++ b/src/bin/e_zone.c
@@ -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);

-- 


Reply via email to