forked from enlightenment/efl
ecore_drm2: Add Fb deleted event
This commit is contained in:
parent
69181cc9e8
commit
c67da0c869
|
@ -42,6 +42,7 @@ typedef enum _Ecore_Drm2_Fb_Status
|
|||
ECORE_DRM2_FB_STATUS_SCANOUT_ON = 1,
|
||||
ECORE_DRM2_FB_STATUS_SCANOUT_OFF = 2,
|
||||
ECORE_DRM2_FB_STATUS_RELEASE = 4,
|
||||
ECORE_DRM2_FB_STATUS_DELETED = 8,
|
||||
} Ecore_Drm2_Fb_Status;
|
||||
|
||||
/* opaque structure to represent a drm device */
|
||||
|
|
|
@ -180,6 +180,9 @@ _ecore_drm2_fb_deref(Ecore_Drm2_Fb *fb)
|
|||
fb->ref--;
|
||||
if (fb->ref) return;
|
||||
|
||||
if (fb->status_handler)
|
||||
fb->status_handler(fb, ECORE_DRM2_FB_STATUS_DELETED, fb->status_data);
|
||||
|
||||
_ecore_drm2_fb_destroy(fb);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue