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
This commit is contained in:
Stefan Schmidt 2015-12-08 00:06:38 +01:00
parent 900fd5446f
commit d4d3f63653
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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