summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-12-08 00:06:38 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2015-12-16 22:18:08 +0100
commitd4d3f636533fd217ec00b7b66c9cc9c6c3891276 (patch)
treed5c9157fa1d8fb1396606a3ff136979b0eb69fef /src/lib/ecore_wayland
parent900fd5446fa7b5b64f463085843bfc9ceac4439f (diff)
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
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_private.h3
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c9
2 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_private.h b/src/lib/ecore_wayland/ecore_wl_private.h
index 91b2d548d4..589f9f9524 100644
--- a/src/lib/ecore_wayland/ecore_wl_private.h
+++ b/src/lib/ecore_wayland/ecore_wl_private.h
@@ -3,6 +3,7 @@
3 3
4# include <limits.h> 4# include <limits.h>
5# include <unistd.h> 5# include <unistd.h>
6# include <uuid/uuid.h>
6 7
7# include "Ecore.h" 8# include "Ecore.h"
8# include "Ecore_Input.h" 9# include "Ecore_Input.h"
@@ -173,6 +174,8 @@ struct _Ecore_Wl_Window
173 Ecore_Wl_Subsurf *subsurfs; 174 Ecore_Wl_Subsurf *subsurfs;
174 175
175 void *data; 176 void *data;
177
178 uuid_t uuid;
176}; 179};
177 180
178struct _Ecore_Wl_Input 181struct _Ecore_Wl_Input
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index b74ab6213e..1def7ab34f 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)
1093static void 1093static void
1094_ecore_session_recovery_uuid(void *data EINA_UNUSED, struct session_recovery *session_recovery, const char *uuid) 1094_ecore_session_recovery_uuid(void *data EINA_UNUSED, struct session_recovery *session_recovery, const char *uuid)
1095{ 1095{
1096 Ecore_Wl_Window *win;
1097 char uuid_string[37];
1098
1096 LOGFN(__FILE__, __LINE__, __FUNCTION__); 1099 LOGFN(__FILE__, __LINE__, __FUNCTION__);
1097 1100
1101 if (!(win = data)) return;
1098 if (!session_recovery) return; 1102 if (!session_recovery) return;
1099 DBG("UUID event received from compositor with UUID: %s", uuid); 1103 uuid_parse(uuid, win->uuid);
1104
1105 uuid_unparse(win->uuid, uuid_string);
1106 DBG("UUID event received from compositor with UUID: %s\n", uuid_string);
1100} 1107}
1101 1108
1102static void 1109static void