From: Roman Peresipkyn Date: Thu, 14 Jul 2016 11:50:50 +0000 (+0300) Subject: forbid enlightenment reconfigure eom client's resolution X-Git-Tag: submit/tizen/20160805.082033^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f41a01602d917bef7ae1961deb9ede966479c257;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-eom.git forbid enlightenment reconfigure eom client's resolution Since Enlightenment client has reconfigured its window to fit external output resolution and Enlightenment no nothing about external outputs Enlightenment sees that client's resolution differs form main screen resolution. Therefore, Enlightenment is trying to resize it back to main screen resolution. It uses timer for that purpose. To forbid it just delte the timer Change-Id: Ieaee40e7a20bfeb162bdd8e35ee466f56d943035 Signed-off-by: Roman Peresipkyn --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index b6ae4bb..4d7a1dd 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -388,12 +388,29 @@ _e_eom_cb_client_buffer_change(void *data, int type, void *event) "resource is NULL"); /* - EOM_DBG("wl_buff:%dx%d type:%d", - external_wl_buffer->w, - external_wl_buffer->h, - external_wl_buffer->type); + EOM_DBG("wl_buff:%p type:%d %dx%d ", + external_wl_buffer, + external_wl_buffer->type, + external_wl_buffer->w, + external_wl_buffer->h, + ); */ + /* Since Enlightenment client has reconfigured its window to fit + * external output resolution and Enlightenment no nothing about + * external outputs Enlightenment sees that client's resolution + * differs form main screen resolution. Therefore, Enlightenment + * is trying to resize it back to main screen resolution. It uses + * timer for that purpose. To forbid it just delte the timer */ + + /* TODO: it works but maybe there is better solution exists ? + * Also I do not know how it affects on performance */ + if (ec->map_timer) + { + EOM_DBG("delete map_timer"); + E_FREE_FUNC(ec->map_timer, ecore_timer_del); + } + /* TODO: support buffers smaller then output resolution */ if (external_wl_buffer->w != eom_output->width || external_wl_buffer->h != eom_output->height )