ecore-x: re-add implementation of ecore_x_connection_get()
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 24 Jan 2018 21:06:29 +0000 (16:06 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 3 Apr 2018 09:50:07 +0000 (18:50 +0900)
this symbol has been missing since the removal of xcb

@fix

m4/efl_find_x.m4
src/lib/ecore_x/ecore_x.c
src/lib/ecore_x/ecore_x_private.h

index dad401f..8c9f5c3 100644 (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],
           [
index 51491f4..81eae65 100644 (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)
 {
index 2254f15..7374a0d 100644 (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>