From ce62980ee7ecc690f565a7b4718dc99327dbbbba Mon Sep 17 00:00:00 2001 From: Manuel Bachmann Date: Mon, 30 Dec 2013 15:07:56 +0100 Subject: [PATCH] Implement a workaround for wayland_egl, allowing to raise the window by hiding and showing it successively. Existing compositors, such as Weston, will restack it on top. Fixes "tizen.application.launch()" does not bring already.. Bug-Tizen: https://bugs.tizen.org/jira/browse/TIVI-2143 Change-Id: Ibfef7fa4bf3fc5b562426a1a0f6140c4531a4919 Signed-off-by: Manuel Bachmann --- src/lib/ecore_evas/ecore_evas_wayland_egl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/ecore_evas/ecore_evas_wayland_egl.c b/src/lib/ecore_evas/ecore_evas_wayland_egl.c index 1669794..8cfaafa 100644 --- a/src/lib/ecore_evas/ecore_evas_wayland_egl.c +++ b/src/lib/ecore_evas/ecore_evas_wayland_egl.c @@ -665,6 +665,11 @@ _ecore_evas_wl_raise(Ecore_Evas *ee) if ((!ee) || (!ee->visible)) return; ecore_wl_window_raise(ee->engine.wl.win); + + /* hide and show to bring window to foreground */ + ecore_evas_hide(ee); + ecore_evas_show(ee); + ecore_wl_window_damage(ee->engine.wl.win, 0, 0, ee->w, ee->h); } static void -- 2.7.4