From 6ef73fb3f01b697c57d8dd0bce09e6528d17c19d Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 6 Feb 2015 11:37:52 +0900 Subject: [PATCH] adapt to new win center trap in 1.13 efl also require 1.13 now as we want he win trap h/v info --- configure.ac | 2 +- src/bin/e_win.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index d59e23203..161a9eab8 100644 --- a/configure.ac +++ b/configure.ac @@ -92,7 +92,7 @@ extern char **environ; AC_DEFINE(HAVE_ENVIRON, 1, [Have environ var]) ]) -efl_version="1.12.99" +efl_version="1.13.0" AC_SUBST(efl_version) AC_CHECK_HEADERS([sys/timerfd.h sys/ptrace.h arpa/inet.h netinet/in.h]) diff --git a/src/bin/e_win.c b/src/bin/e_win.c index f30694831..91d539498 100644 --- a/src/bin/e_win.c +++ b/src/bin/e_win.c @@ -155,11 +155,12 @@ _e_elm_win_trap_resize(void *data, Evas_Object *o __UNUSED__, int w, int h) } 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; 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->centered) e_comp_object_util_center(ctx->client->frame); return EINA_FALSE;