Fix build warning 14/41314/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 12 Jun 2015 11:00:13 +0000 (20:00 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 12 Jun 2015 11:00:13 +0000 (20:00 +0900)
Change-Id: I6e0e0ddb8ac810c6e053af2883008738dc236f81

src/sclconnection-isf.cpp

index 2a47667..8793790 100644 (file)
@@ -621,12 +621,13 @@ void CSCLConnectionISF::open_connection(const sclchar *display)
         int fd = m_helper_agent.get_connection_number();
 
         if (fd >= 0) {
+#ifndef WAYLAND
             Evas_Object *main_window = NULL;
             CSCLCoreImpl *impl = CSCLCoreImpl::get_instance();
             if (impl) {
                 main_window = NATIVE_WINDOW_CAST(impl->get_main_window());
             }
-#ifndef WAYLAND
+
             Ecore_X_Window xwindow = elm_win_xwindow_get(main_window);
             char xid[255];
             snprintf(xid, 255, "%d", xwindow);