requirements_ecore_psl1ght="ecore >= 1.6.99 eina >= 1.6.99 ${requirements_ecore_psl1ght}"
requirements_ecore_win32="ecore >= 1.6.99 eina >= 1.6.99 ${requirements_ecore_win32}"
requirements_ecore_wince="ecore >= 1.6.99 eina >= 1.6.99 ${requirements_ecore_wince}"
-requirements_ecore_x="ecore >= 1.6.99 eina >= 1.6.99 ${requirements_ecore_x}"
+requirements_ecore_x="ecore >= 1.6.99 eina >= 1.6.99 ecore-wayland >= 1.6.99 ${requirements_ecore_x}"
# glib support (main loop integration)
Description: E core library, X module
@pkgconfig_requires_private@: @requirements_ecore_x@
Version: @VERSION@
-Libs: -L${libdir} -lecore_x
+Libs: -L${libdir} -lecore_x -lecore_wayland
Libs.private: @x_libs@ @ecore_x_libs_private@
Cflags: -I${includedir}/ecore-@VMAJ@ @have_ecore_x_xcb_define@
EAPI void
ecore_imf_context_focus_in(Ecore_IMF_Context *ctx)
{
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return;
+ /*XXX End Hooks for Wayland */
+
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
EAPI void
ecore_imf_context_input_panel_geometry_get(Ecore_IMF_Context *ctx, int *x, int *y, int *w, int *h)
{
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return;
+ /*XXX End Hooks for Wayland */
+
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
{
ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
#include "Ecore_X_Atoms.h"
#include "Ecore_Input.h"
+#define ROOT_WIN_ID 1
+
static Eina_Bool _ecore_x_fd_handler(void *data,
Ecore_Fd_Handler *fd_handler);
static Eina_Bool _ecore_x_fd_handler_buf(void *data,
EAPI Ecore_X_Display *
ecore_x_display_get(void)
{
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return NULL;
+ /*XXX End Hooks for Wayland */
+
return (Ecore_X_Display *)_ecore_x_disp;
}
ecore_x_default_screen_get(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return NULL;
+ /*XXX End Hooks for Wayland */
+
return (Ecore_X_Screen *)DefaultScreenOfDisplay(_ecore_x_disp);
}
{
Screen *s = (Screen *)screen;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY"))) {
+ ecore_x_window_size_get(ROOT_WIN_ID, w, h);
+ return;
+ }
+ /*XXX End Hooks for Wayland */
+
if (w) *w = 0;
if (h) *h = 0;
if (!s) return;
ecore_x_flush(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return;
+ /*XXX End Hooks for Wayland */
+
XFlush(_ecore_x_disp);
}
ecore_x_sync(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return;
+ /*XXX End Hooks for Wayland */
+
XSync(_ecore_x_disp, False);
}
{
Screen *s;
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return 75;
+ /*XXX End Hooks for Wayland */
+
LOGFN(__FILE__, __LINE__, __FUNCTION__);
s = DefaultScreenOfDisplay(_ecore_x_disp);
if (s->mwidth <= 0)
EAPI Ecore_X_Window
ecore_x_window_root_first_get(void)
{
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return ROOT_WIN_ID;
+ /*XXX End Hooks for Wayland */
+
return RootWindow(_ecore_x_disp, 0);
/*
int num;
XWindowAttributes attr;
XSetWindowAttributes s_attr;
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return;
+ /*XXX End Hooks for Wayland */
+
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!w)
w = DefaultRootWindow(_ecore_x_disp);
#include "Ecore_X.h"
#include "Ecore_X_Atoms.h"
+#define ROOT_WIN_ID 1
+
static int ignore_num = 0;
static Ecore_X_Window *ignore_list = NULL;
Window win;
int revert_mode;
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return ROOT_WIN_ID;
+ /*XXX End Hooks for Wayland */
+
LOGFN(__FILE__, __LINE__, __FUNCTION__);
win = 0;
XGetInputFocus(_ecore_x_disp, &win, &revert_mode);
{
int dummy_x, dummy_y;
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY"))) {
+ if (win == ROOT_WIN_ID) {
+ if (ecore_wl_init(NULL) > 1) {
+ ecore_wl_shutdown(0);
+ }
+ ecore_wl_screen_size_get(w, h);
+ }
+ return;
+ }
+ /*XXX End Hooks for Wayland */
+
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (win == 0)
win = DefaultRootWindow(_ecore_x_disp);
EAPI Ecore_X_Window
ecore_x_window_root_get(Ecore_X_Window win)
{
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return ROOT_WIN_ID;
+ /*XXX End Hooks for Wayland */
+
XWindowAttributes att;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
unsigned int i;
int num;
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return -1;
+ /*XXX End Hooks for Wayland */
+
LOGFN(__FILE__, __LINE__, __FUNCTION__);
prop_ret = NULL;
if (XGetWindowProperty(_ecore_x_disp, win, atom, 0, 0x7fffffff, False,
int number)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
+
+ /*XXX Start Hooks for Wayland */
+ char *d;
+
+ if (!(d = getenv("DISPLAY")))
+ return;
+ /*XXX End Hooks for Wayland */
+
if (win == 0)
win = DefaultRootWindow(_ecore_x_disp);