From 8ed0aa02cfc32faadff0ba04de2da92a6a096107 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Sun, 15 May 2016 09:35:54 -0400 Subject: [PATCH] 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 --- src/lib/elementary/elm_cnp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c index efd8e0f245..8a7e834631 100644 --- a/src/lib/elementary/elm_cnp.c +++ b/src/lib/elementary/elm_cnp.c @@ -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;