elementary: Don't define handlers if we are not going to use them
authorChris Michael <cpmichael@osg.samsung.com>
Sun, 15 May 2016 13:35:54 +0000 (09:35 -0400)
committerChris Michael <cpmichael@osg.samsung.com>
Sun, 15 May 2016 13:53:16 +0000 (09:53 -0400)
These handlers are only used when building for X11, not for Wayland,
so conditionally compile them in/out

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
src/lib/elementary/elm_cnp.c

index efd8e0f..8a7e834 100644 (file)
@@ -168,9 +168,11 @@ static int _dragx = 0, _dragy = 0;
 static Ecore_Event_Handler *handler_pos = NULL;
 static Ecore_Event_Handler *handler_drop = NULL;
 static Ecore_Event_Handler *handler_enter = NULL;
-static Ecore_Event_Handler *handler_status = NULL;
 static Ecore_Event_Handler *handler_leave = NULL;
+#ifdef HAVE_ELEMENTARY_X
+static Ecore_Event_Handler *handler_status = NULL;
 static Ecore_Event_Handler *handler_up = NULL;
+#endif
 
 /* TODO BUG: should NEVER have these as globals! They should be per context (window). */
 static Elm_Drag_Pos dragposcb = NULL;