summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-06-09 09:02:19 -0400
committerChris Michael <cp.michael@samsung.com>2015-06-09 09:05:01 -0400
commit0d28a1154304987a5069393d0cb903aad00b6508 (patch)
tree6e8730784271edfa627844b03ee15cb1d6905bca
parent5ffcaf605ef55130fd93127addd4737bdabf9a60 (diff)
ecore-x: Fix warning of defined but unused function
Summary: The _ecore_x_input_grabbed_is function is only used if we have support for XI2_2, so move the defines around a little to fix a compiler warning. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_xi2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_x/xlib/ecore_x_xi2.c b/src/lib/ecore_x/xlib/ecore_x_xi2.c
index fc7daf9c19..9298bceb4b 100644
--- a/src/lib/ecore_x/xlib/ecore_x_xi2.c
+++ b/src/lib/ecore_x/xlib/ecore_x_xi2.c
@@ -276,10 +276,10 @@ _ecore_x_input_raw_handler(XEvent *xevent)
276#endif /* ifdef ECORE_XI2 */ 276#endif /* ifdef ECORE_XI2 */
277} 277}
278 278
279#ifdef ECORE_XI2_2
279static Eina_Bool 280static Eina_Bool
280_ecore_x_input_grabbed_is(int deviceId) 281_ecore_x_input_grabbed_is(int deviceId)
281{ 282{
282#ifdef ECORE_XI2
283 void *id; 283 void *id;
284 Eina_List *l; 284 Eina_List *l;
285 285
@@ -288,10 +288,10 @@ _ecore_x_input_grabbed_is(int deviceId)
288 if (deviceId == (intptr_t)id) 288 if (deviceId == (intptr_t)id)
289 return EINA_TRUE; 289 return EINA_TRUE;
290 } 290 }
291#endif /* ifdef ECORE_XI2 */
292 291
293 return EINA_FALSE; 292 return EINA_FALSE;
294} 293}
294#endif /* ifdef ECORE_XI2_2 */
295 295
296void 296void
297_ecore_x_input_mouse_handler(XEvent *xevent) 297_ecore_x_input_mouse_handler(XEvent *xevent)