ecore-drm: Add output id to output event

Summary: When we raise an event for an output, also include the output
id in the event structure. This will allow us to better identify which
output the event occured on.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-02-23 13:57:44 -05:00
parent d9c9ea1f2a
commit 15a2178492
2 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,7 @@ struct _Ecore_Drm_Event_Activate
struct _Ecore_Drm_Event_Output
{
unsigned int id;
int x, y;
int w, h;
int phys_width, phys_height;

View File

@ -603,6 +603,7 @@ _ecore_drm_event_output_send(const Ecore_Drm_Output *output, Eina_Bool plug)
e->plug = plug;
if (plug)
{
e->id = output->crtc_id;
e->w = output->current_mode->width;
e->h = output->current_mode->height;
e->x = output->x;