From b28d6ac5e6fd03de9468c7ade293d7f4b7468168 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 24 Jan 2018 16:06:29 -0500 Subject: [PATCH] ecore-x: re-add implementation of ecore_x_connection_get() this symbol has been missing since the removal of xcb @fix --- m4/efl_find_x.m4 | 1 + src/lib/ecore_x/ecore_x.c | 7 +++++++ src/lib/ecore_x/ecore_x_private.h | 1 + 3 files changed, 9 insertions(+) diff --git a/m4/efl_find_x.m4 b/m4/efl_find_x.m4 index dad401fcf8..8c9f5c3677 100644 --- a/m4/efl_find_x.m4 +++ b/m4/efl_find_x.m4 @@ -120,6 +120,7 @@ AC_DEFUN([EFL_FIND_X], efl_x11_lib= fi done + efl_x11_modules="$efl_x11_modules x11-xcb" PKG_CHECK_EXISTS([$efl_x11_modules], [ diff --git a/src/lib/ecore_x/ecore_x.c b/src/lib/ecore_x/ecore_x.c index 51491f4543..81eae65294 100644 --- a/src/lib/ecore_x/ecore_x.c +++ b/src/lib/ecore_x/ecore_x.c @@ -2519,6 +2519,13 @@ ecore_x_default_depth_get(Ecore_X_Display *disp, return depth; } +EAPI Ecore_X_Connection * +ecore_x_connection_get(void) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(_ecore_x_disp, NULL); + return XGetXCBConnection(_ecore_x_disp); +} + EAPI void ecore_x_xkb_select_group(int group) { diff --git a/src/lib/ecore_x/ecore_x_private.h b/src/lib/ecore_x/ecore_x_private.h index 2254f150dc..7374a0d9ee 100644 --- a/src/lib/ecore_x/ecore_x_private.h +++ b/src/lib/ecore_x/ecore_x_private.h @@ -7,6 +7,7 @@ #endif /* ifndef MAXHOSTNAMELEN */ #include +#include #include #include #include