forked from enlightenment/enlightenment
adapt to new win center trap in 1.13 efl
also require 1.13 now as we want he win trap h/v info
This commit is contained in:
parent
ea230eeaf5
commit
6ef73fb3f0
|
@ -92,7 +92,7 @@ extern char **environ;
|
||||||
AC_DEFINE(HAVE_ENVIRON, 1, [Have environ var])
|
AC_DEFINE(HAVE_ENVIRON, 1, [Have environ var])
|
||||||
])
|
])
|
||||||
|
|
||||||
efl_version="1.12.99"
|
efl_version="1.13.0"
|
||||||
AC_SUBST(efl_version)
|
AC_SUBST(efl_version)
|
||||||
|
|
||||||
AC_CHECK_HEADERS([sys/timerfd.h sys/ptrace.h arpa/inet.h netinet/in.h])
|
AC_CHECK_HEADERS([sys/timerfd.h sys/ptrace.h arpa/inet.h netinet/in.h])
|
||||||
|
|
|
@ -155,11 +155,12 @@ _e_elm_win_trap_resize(void *data, Evas_Object *o __UNUSED__, int w, int h)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_e_elm_win_trap_center(void *data, Evas_Object *o __UNUSED__)
|
_e_elm_win_trap_center(void *data, Evas_Object *o __UNUSED__, Eina_Bool h, Eina_Bool v)
|
||||||
{
|
{
|
||||||
Elm_Win_Trap_Ctx *ctx = data;
|
Elm_Win_Trap_Ctx *ctx = data;
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(ctx, EINA_TRUE);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(ctx, EINA_TRUE);
|
||||||
ctx->centered = ctx->placed = 1;
|
ctx->centered = h | v;
|
||||||
|
ctx->placed = 1;
|
||||||
if (!ctx->client) return EINA_FALSE;
|
if (!ctx->client) return EINA_FALSE;
|
||||||
if (ctx->centered) e_comp_object_util_center(ctx->client->frame);
|
if (ctx->centered) e_comp_object_util_center(ctx->client->frame);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue