elm_win: added code to set wayland parent window. 30/62230/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 15 Mar 2016 03:02:18 +0000 (12:02 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 15 Mar 2016 03:02:18 +0000 (12:02 +0900)
there was no code to set wayland parent window when elm_win_add(parent,...) is called.
so wayland surface couldn't make relationship (such as transient_for) between the parent and child surface.

Change-Id: I8ff0f9fe25292c647fd36d64fe7d9351abead4c3

src/lib/elm_win.c

index 0440c1b..306db90 100644 (file)
@@ -3934,8 +3934,13 @@ _elm_win_finalize_internal(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_
    sd->obscured = ecore_evas_obscured_get(sd->ee);
 
    if (sd->parent)
-     evas_object_event_callback_add
-       (sd->parent, EVAS_CALLBACK_DEL, _elm_win_on_parent_del, obj);
+     {
+#ifdef HAVE_ELEMENTARY_WAYLAND
+        ecore_wl_window_parent_set(sd->wl.win, elm_win_wl_window_get(sd->parent));
+#endif
+        evas_object_event_callback_add
+          (sd->parent, EVAS_CALLBACK_DEL, _elm_win_on_parent_del, obj);
+     }
 
    sd->evas = ecore_evas_get(sd->ee);