elementary: Don't define handlers if we are not going to use them

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>
This commit is contained in:
Chris Michael 2016-05-15 09:35:54 -04:00
parent dd649ab639
commit 8ed0aa02cf
1 changed files with 3 additions and 1 deletions

View 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;