diff --git a/configure.ac b/configure.ac index f952511d5..1ae4b926d 100644 --- a/configure.ac +++ b/configure.ac @@ -727,7 +727,7 @@ define([CHECK_MODULE_OFONO], AC_SUBST(EOFONO_CFLAGS) AC_SUBST(EOFONO_LIBS) -have_wayland=no +have_wayland_clients=no AC_ARG_ENABLE([wayland-clients], AS_HELP_STRING([--enable-wayland-clients],[enable wayland clients in composite module @<:@default=disabled@:>@]), [e_cv_want_wayland_clients=$enableval], @@ -739,15 +739,15 @@ AC_MSG_RESULT([${e_cv_want_wayland_clients}]) if test "x$e_cv_want_wayland_clients" != "xno";then PKG_CHECK_MODULES([WAYLAND], [wayland-server egl >= 7.10 glesv2 gl pixman-1 xcb-image], [ - have_wayland=yes - AC_DEFINE_UNQUOTED([HAVE_WAYLAND],[1],[enable wayland client support]) + have_wayland_clients=yes + AC_DEFINE_UNQUOTED([HAVE_WAYLAND_CLIENTS],[1],[enable wayland client support]) ], - [have_wayland=no]) + [have_wayland_clients=no]) else - have_wayland=no + have_wayland_clients=no fi -AM_CONDITIONAL([HAVE_WAYLAND], [test "x${have_wayland}" = "xyes"]) +AM_CONDITIONAL([HAVE_WAYLAND_CLIENTS], [test "x${have_wayland_clients}" = "xyes"]) AC_E_OPTIONAL_MODULE([ibar], true) diff --git a/src/modules/comp/Makefile.am b/src/modules/comp/Makefile.am index 62dbe4c88..b75f9f184 100644 --- a/src/modules/comp/Makefile.am +++ b/src/modules/comp/Makefile.am @@ -31,7 +31,7 @@ module_la_SOURCES = e_mod_main.c \ e_mod_comp_update.h \ e_mod_comp_cfdata.c \ e_mod_comp_cfdata.h -if HAVE_WAYLAND +if HAVE_WAYLAND_CLIENTS module_la_SOURCES += e_mod_comp_wl.h \ e_mod_comp_wl.c \ e_mod_comp_wl_comp.h \ diff --git a/src/modules/comp/e_mod_comp.c b/src/modules/comp/e_mod_comp.c index 965e6c3cd..28d820fd4 100644 --- a/src/modules/comp/e_mod_comp.c +++ b/src/modules/comp/e_mod_comp.c @@ -2,7 +2,7 @@ #include "e_mod_main.h" #include "e_mod_comp.h" #include "e_mod_comp_update.h" -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS #include "e_mod_comp_wl.h" #endif @@ -513,7 +513,7 @@ _e_mod_comp_win_update(E_Comp_Win *cw) { Ecore_X_Pixmap pm = 0; -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS if ((cw->bd) && (cw->bd->borderless)) pm = e_mod_comp_wl_pixmap_get(cw->win); #endif @@ -598,7 +598,7 @@ _e_mod_comp_win_update(E_Comp_Win *cw) if ((cw->c->gl) && (_comp_mod->conf->texture_from_pixmap) && (!cw->shaped) && (!cw->rects)) { -/* #ifdef HAVE_WAYLAND */ +/* #ifdef HAVE_WAYLAND_CLIENTS */ /* DBG("DEBUG - pm now %x\n", e_mod_comp_wl_pixmap_get(cw->win)); */ /* #endif */ /* DBG("DEBUG - pm now %x\n", ecore_x_composite_name_window_pixmap_get(cw->win)); */ @@ -1118,7 +1118,7 @@ nocomp: printf(" redr\n"); ecore_x_composite_redirect_window(cw->win, ECORE_X_COMPOSITE_UPDATE_MANUAL); -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS if ((cw->bd) && (cw->bd->borderless)) cw->pixmap = e_mod_comp_wl_pixmap_get(cw->win); #endif @@ -2064,7 +2064,7 @@ _e_mod_comp_win_show(E_Comp_Win *cw) { // we redirect all subwindows anyway // ecore_x_composite_redirect_window(cw->win, ECORE_X_COMPOSITE_UPDATE_MANUAL); -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS if ((cw->bd) && (cw->bd->borderless)) cw->pixmap = e_mod_comp_wl_pixmap_get(cw->win); #endif @@ -3506,7 +3506,7 @@ e_mod_comp_init(void) return 0; } -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS if (!e_mod_comp_wl_init()) EINA_LOG_ERR("Failed to initialize Wayland Client Support !!\n"); #endif @@ -3533,7 +3533,7 @@ e_mod_comp_shutdown(void) E_FREE_LIST(handlers, ecore_event_handler_del); -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS e_mod_comp_wl_shutdown(); #endif diff --git a/src/modules/comp/e_mod_comp_wl.c b/src/modules/comp/e_mod_comp_wl.c index 1faab82d7..50bd1df9c 100644 --- a/src/modules/comp/e_mod_comp_wl.c +++ b/src/modules/comp/e_mod_comp_wl.c @@ -1,6 +1,6 @@ #include "e.h" #include "e_mod_main.h" -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS # include # include "e_mod_comp_wl.h" # include "e_mod_comp_wl_comp.h" diff --git a/src/modules/comp/e_mod_comp_wl_buffer.c b/src/modules/comp/e_mod_comp_wl_buffer.c index 001e5a0eb..1f3da316d 100644 --- a/src/modules/comp/e_mod_comp_wl_buffer.c +++ b/src/modules/comp/e_mod_comp_wl_buffer.c @@ -1,7 +1,7 @@ #include "e.h" #include "e_mod_main.h" #include "e_mod_comp.h" -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS # include "e_mod_comp_wl.h" # include "e_mod_comp_wl_buffer.h" # include "e_mod_comp_wl_comp.h" diff --git a/src/modules/comp/e_mod_comp_wl_comp.c b/src/modules/comp/e_mod_comp_wl_comp.c index 96c88851e..6374adcf6 100644 --- a/src/modules/comp/e_mod_comp_wl_comp.c +++ b/src/modules/comp/e_mod_comp_wl_comp.c @@ -1,6 +1,6 @@ #include "e.h" #include "e_mod_main.h" -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS # include "e_mod_comp_wl.h" # include "e_mod_comp_wl_comp.h" # include "e_mod_comp_wl_shm.h" diff --git a/src/modules/comp/e_mod_comp_wl_input.c b/src/modules/comp/e_mod_comp_wl_input.c index ffae4ffbb..42393da26 100644 --- a/src/modules/comp/e_mod_comp_wl_input.c +++ b/src/modules/comp/e_mod_comp_wl_input.c @@ -1,6 +1,6 @@ #include "e.h" #include "e_mod_main.h" -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS # include "e_mod_comp_wl.h" # include "e_mod_comp_wl_input.h" #endif diff --git a/src/modules/comp/e_mod_comp_wl_output.c b/src/modules/comp/e_mod_comp_wl_output.c index 7c0f2ddc9..294c30498 100644 --- a/src/modules/comp/e_mod_comp_wl_output.c +++ b/src/modules/comp/e_mod_comp_wl_output.c @@ -1,6 +1,6 @@ #include "e.h" #include "e_mod_main.h" -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS # include "e_mod_comp_wl.h" # include "e_mod_comp_wl_output.h" #endif diff --git a/src/modules/comp/e_mod_comp_wl_shell.c b/src/modules/comp/e_mod_comp_wl_shell.c index b88f7be9e..2da6b41bf 100644 --- a/src/modules/comp/e_mod_comp_wl_shell.c +++ b/src/modules/comp/e_mod_comp_wl_shell.c @@ -1,6 +1,6 @@ #include "e.h" #include "e_mod_main.h" -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS # include "e_mod_comp_wl.h" # include "e_mod_comp_wl_comp.h" # include "e_mod_comp_wl_output.h" diff --git a/src/modules/comp/e_mod_comp_wl_shm.c b/src/modules/comp/e_mod_comp_wl_shm.c index 6ede01624..d360533fe 100644 --- a/src/modules/comp/e_mod_comp_wl_shm.c +++ b/src/modules/comp/e_mod_comp_wl_shm.c @@ -1,6 +1,6 @@ #include "e.h" #include "e_mod_main.h" -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS # include "e_mod_comp_wl.h" # include "e_mod_comp_wl_shm.h" #endif diff --git a/src/modules/comp/e_mod_comp_wl_surface.c b/src/modules/comp/e_mod_comp_wl_surface.c index 7578563be..f5f02845c 100644 --- a/src/modules/comp/e_mod_comp_wl_surface.c +++ b/src/modules/comp/e_mod_comp_wl_surface.c @@ -1,6 +1,6 @@ #include "e.h" #include "e_mod_main.h" -#ifdef HAVE_WAYLAND +#ifdef HAVE_WAYLAND_CLIENTS # include "e_mod_comp_wl.h" # include "e_mod_comp_wl_comp.h" # include "e_mod_comp_wl_output.h"