summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-09 20:16:07 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-09 19:14:58 -0400
commit7e3c10838227bbb623f98f736f229cf4ab30086e (patch)
treee10efbc6a3205326579e91b874885bce5f0c2077 /src/lib/ecore_evas
parent98289815851bfcec0046bf27894268ce2f86db5a (diff)
ecore-evas: safety -> normal null check in _ecore_evas_focus_device_set()
when unsetting focus, if the specified seat doesn't exist then there is no focus to unset
Diffstat (limited to 'src/lib/ecore_evas')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index 95684597ee..ccc54b9f26 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -1987,7 +1987,9 @@ _ecore_evas_focus_device_set(Ecore_Evas *ee, Efl_Input_Device *seat,
1987 1987
1988 if (!seat) 1988 if (!seat)
1989 seat = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_SEAT); 1989 seat = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_SEAT);
1990 EINA_SAFETY_ON_NULL_RETURN(seat); 1990 if (on)
1991 EINA_SAFETY_ON_NULL_RETURN(seat);
1992 else if (!seat) return;
1991 1993
1992 if (efl_input_device_type_get(seat) != EFL_INPUT_DEVICE_CLASS_SEAT) 1994 if (efl_input_device_type_get(seat) != EFL_INPUT_DEVICE_CLASS_SEAT)
1993 { 1995 {