Change to use wayland functions instead of x functions 34/42934/1 submit/tizen_tv/20150706.064257
authorsungwon2.han <sungwon2.han@samsung.com>
Mon, 6 Jul 2015 06:37:14 +0000 (15:37 +0900)
committersungwon2.han <sungwon2.han@samsung.com>
Mon, 6 Jul 2015 06:39:03 +0000 (15:39 +0900)
ecore_x_window_size_get --> ecore_wl_screen_size_get

Change-Id: Ib72381ba8e5e515126afe3db2c83d964c0ccd563
Signed-off-by: sungwon2.han <sungwon2.han@samsung.com>
services/SimpleUI/SimpleUI.cpp

index 7e514cc..25e1648 100644 (file)
@@ -27,6 +27,7 @@
 #include <algorithm>
 #include <Elementary.h>
 #include <Ecore.h>
+#include <Ecore_Wayland.h>
 #include <Edje.h>
 #include <Evas.h>
 #include "Config.h"
@@ -115,11 +116,12 @@ int SimpleUI::exec(const std::string& _url)
             elm_win_alpha_set(m_window.get(), EINA_FALSE);
 
             // creatin main window
-            //int width = 1920;
-            //int height = 1080;
+            int width = 0;
+            int height = 0;
             //ecore_x_window_size_get(ecore_x_window_root_first_get(), &width, &height);
-            //evas_object_move(m_window.get(), 0, 0);
-            //evas_object_resize(m_window.get(), width, height);
+            ecore_wl_screen_size_get(&width, &height);
+            evas_object_move(m_window.get(), 0, 0);
+            evas_object_resize(m_window.get(), width, height);
 
             // create main layout
             m_mainLayout = elm_layout_add(m_window.get());