aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-01-12 09:10:27 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-01-12 09:10:27 +0000
commit3e83e40a239307504f483ed2a029cfad91fd245b (patch)
tree9d96ab40d7606e128a583df96ff92a7b0c64636e /legacy/elementary/src/lib/elm_win.c
parentelementary/toolbar, diskseletor - deprecated tooltip APIs (diff)
downloadefl-3e83e40a239307504f483ed2a029cfad91fd245b.tar.gz
Elementary: Added Wayland_Egl backend support.
Modified elm_win to use generic wayland_resize function (for ecore_evas). SVN revision: 67134
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 4171b1ace2..588c1af64f 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1,4 +1,4 @@
- #include <Elementary.h>
+#include <Elementary.h>
#include "elm_priv.h"
typedef struct _Elm_Win Elm_Win;
@@ -1380,8 +1380,9 @@ _elm_win_frame_cb_resize_start(void *data, Evas_Object *obj __UNUSED__, const ch
else
win->resize_location = 0;
+ /* FIXME: Change to more generic wayland resize function */
if (win->resize_location > 0)
- ecore_evas_wayland_shm_resize(win->ee, win->resize_location);
+ ecore_evas_wayland_resize(win->ee, win->resize_location);
}
static void
@@ -1665,6 +1666,13 @@ elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
_elm_win_frame_add(win, "default");
}
+ else if (ENGINE_COMPARE(ELM_WAYLAND_EGL))
+ {
+ win->ee = ecore_evas_wayland_egl_new(NULL, 0, 0, 1, 1, 0);
+ win->evas = ecore_evas_get(win->ee);
+
+ _elm_win_frame_add(win, "default");
+ }
else if (!strncmp(_elm_config->engine, "shot:", 5))
{
win->ee = ecore_evas_buffer_new(1, 1);