ecore-x: re-add implementation of ecore_x_connection_get()

this symbol has been missing since the removal of xcb

@fix
This commit is contained in:
Mike Blumenkrantz 2018-01-24 16:06:29 -05:00
parent 067ec7bd5c
commit b28d6ac5e6
3 changed files with 9 additions and 0 deletions

View File

@ -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],
[

View File

@ -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)
{

View File

@ -7,6 +7,7 @@
#endif /* ifndef MAXHOSTNAMELEN */
#include <X11/Xlib.h>
#include <X11/Xlib-xcb.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>