summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/efl_find_x.m41
-rw-r--r--src/lib/ecore_x/ecore_x.c7
-rw-r--r--src/lib/ecore_x/ecore_x_private.h1
3 files changed, 9 insertions, 0 deletions
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],
120 efl_x11_lib= 120 efl_x11_lib=
121 fi 121 fi
122 done 122 done
123 efl_x11_modules="$efl_x11_modules x11-xcb"
123 124
124 PKG_CHECK_EXISTS([$efl_x11_modules], 125 PKG_CHECK_EXISTS([$efl_x11_modules],
125 [ 126 [
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,
2519 return depth; 2519 return depth;
2520} 2520}
2521 2521
2522EAPI Ecore_X_Connection *
2523ecore_x_connection_get(void)
2524{
2525 EINA_SAFETY_ON_NULL_RETURN_VAL(_ecore_x_disp, NULL);
2526 return XGetXCBConnection(_ecore_x_disp);
2527}
2528
2522EAPI void 2529EAPI void
2523ecore_x_xkb_select_group(int group) 2530ecore_x_xkb_select_group(int group)
2524{ 2531{
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 @@
7#endif /* ifndef MAXHOSTNAMELEN */ 7#endif /* ifndef MAXHOSTNAMELEN */
8 8
9#include <X11/Xlib.h> 9#include <X11/Xlib.h>
10#include <X11/Xlib-xcb.h>
10#include <X11/Xproto.h> 11#include <X11/Xproto.h>
11#include <X11/Xutil.h> 12#include <X11/Xutil.h>
12#include <X11/Xatom.h> 13#include <X11/Xatom.h>