aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-14 22:39:58 (GMT)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-15 01:02:12 (GMT)
commit23b5392dbe41994ea2639e15b8420d8825d8c975 (patch)
treee3c4daba74443c10a8d7ddc0b0f9cd7f9cc67280
parentfix evry comparison macro to work as expected (diff)
downloadenlightenment-23b5392dbe41994ea2639e15b8420d8825d8c975.tar.gz
shot - only access e client if not null
-rw-r--r--src/modules/shot/e_mod_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index 121a637..ad8b742 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -868,7 +868,11 @@ _shot_now(E_Zone *zone, E_Client *ec, const char *params)
if (!e_widget_focus_get(o_bg)) e_widget_focus_set(o_box, 1);
if (ec)
- evas_object_layer_set(e_win_client_get(win)->frame, ec->layer);
+ {
+ E_Client *c = e_win_client_get(win);
+
+ if (c) evas_object_layer_set(c->frame, ec->layer);
+ }
}
}