summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_drm/Ecore_Drm.h1
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index f468b56c3f..0a8b7d4665 100644
--- a/src/lib/ecore_drm/Ecore_Drm.h
+++ b/src/lib/ecore_drm/Ecore_Drm.h
@@ -147,6 +147,7 @@ struct _Ecore_Drm_Event_Output
147 int transform; 147 int transform;
148 const char *make; 148 const char *make;
149 const char *model; 149 const char *model;
150 const char *name; /** @since 1.15 */
150 Eina_Bool plug : 1; 151 Eina_Bool plug : 1;
151}; 152};
152 153
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index 9b571d0ad6..00f2ae48cf 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -30,6 +30,7 @@ _ecore_drm_output_event_free(void *data EINA_UNUSED, void *event)
30 30
31 eina_stringshare_del(e->make); 31 eina_stringshare_del(e->make);
32 eina_stringshare_del(e->model); 32 eina_stringshare_del(e->model);
33 eina_stringshare_del(e->name);
33 free(event); 34 free(event);
34} 35}
35 36
@@ -51,6 +52,7 @@ _ecore_drm_output_event_send(const Ecore_Drm_Output *output, Eina_Bool plug)
51 e->subpixel_order = output->subpixel; 52 e->subpixel_order = output->subpixel;
52 e->make = eina_stringshare_ref(output->make); 53 e->make = eina_stringshare_ref(output->make);
53 e->model = eina_stringshare_ref(output->model); 54 e->model = eina_stringshare_ref(output->model);
55 e->name = eina_stringshare_ref(output->name);
54 e->transform = 0; 56 e->transform = 0;
55 ecore_event_add(ECORE_DRM_EVENT_OUTPUT, e, 57 ecore_event_add(ECORE_DRM_EVENT_OUTPUT, e,
56 _ecore_drm_output_event_free, NULL); 58 _ecore_drm_output_event_free, NULL);