stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d4d3f636533fd217ec00b7b66c9cc9c6c3891276

commit d4d3f636533fd217ec00b7b66c9cc9c6c3891276
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Tue Dec 8 00:06:38 2015 +0100

    ecore_wayland: store uuid received from compositor
    
    If we get an uuid assigned from the compositor we will store them locally to
    provide it later on if needed.
    
    ref T2922
---
 src/lib/ecore_wayland/ecore_wl_private.h | 3 +++
 src/lib/ecore_wayland/ecore_wl_window.c  | 9 ++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_private.h 
b/src/lib/ecore_wayland/ecore_wl_private.h
index 91b2d54..589f9f9 100644
--- a/src/lib/ecore_wayland/ecore_wl_private.h
+++ b/src/lib/ecore_wayland/ecore_wl_private.h
@@ -3,6 +3,7 @@
 
 # include <limits.h>
 # include <unistd.h>
+# include <uuid/uuid.h>
 
 # include "Ecore.h"
 # include "Ecore_Input.h"
@@ -173,6 +174,8 @@ struct _Ecore_Wl_Window
    Ecore_Wl_Subsurf *subsurfs;
 
    void *data;
+
+   uuid_t uuid;
 };
 
 struct _Ecore_Wl_Input
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c 
b/src/lib/ecore_wayland/ecore_wl_window.c
index b74ab62..1def7ab 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -1093,10 +1093,17 @@ _ecore_xdg_handle_popup_done(void *data, struct 
xdg_popup *xdg_popup)
 static void
 _ecore_session_recovery_uuid(void *data EINA_UNUSED, struct session_recovery 
*session_recovery, const char *uuid)
 {
+   Ecore_Wl_Window *win;
+   char uuid_string[37];
+
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
+   if (!(win = data)) return;
    if (!session_recovery) return;
-   DBG("UUID event received from compositor with UUID: %s", uuid);
+   uuid_parse(uuid, win->uuid);
+
+   uuid_unparse(win->uuid, uuid_string);
+   DBG("UUID event received from compositor with UUID: %s\n", uuid_string);
 }
 
 static void

-- 


Reply via email to