discomfitor pushed a commit to branch master.

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

commit ab9d2723a5a03c12779f58bc85cd46756f76fe48
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Apr 13 15:47:23 2015 -0400

    only set shot window layer if taking window shot
    
    fix T2282
---
 src/modules/shot/e_mod_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index 95ca415..121a637 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -867,7 +867,8 @@ _shot_now(E_Zone *zone, E_Client *ec, const char *params)
         e_win_client_icon_set(win, "screenshot");
 
         if (!e_widget_focus_get(o_bg)) e_widget_focus_set(o_box, 1);
-        evas_object_layer_set(e_win_client_get(win)->frame, ec->layer);
+        if (ec)
+          evas_object_layer_set(e_win_client_get(win)->frame, ec->layer);
      }
 }
 

-- 


Reply via email to