Commit 5d4e758d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

xcb/x11: remove the manage callback

parent 4ecdf7d9
......@@ -78,7 +78,6 @@ struct vout_display_sys_t
static picture_pool_t *Pool (vout_display_t *, unsigned);
static void Display (vout_display_t *, picture_t *, subpicture_t *subpicture);
static int Control (vout_display_t *, int, va_list);
static void Manage (vout_display_t *);
static void ResetPictures (vout_display_t *);
......@@ -305,7 +304,7 @@ found_format:;
vd->prepare = NULL;
vd->display = Display;
vd->control = Control;
vd->manage = Manage;
vd->manage = NULL;
return VLC_SUCCESS;
......@@ -404,6 +403,8 @@ static void Display (vout_display_t *vd, picture_t *pic, subpicture_t *subpictur
xcb_shm_seg_t segment = XCB_picture_GetSegment(pic);
xcb_void_cookie_t ck;
vlc_xcb_Manage(vd, sys->conn, &sys->visible);
if (!sys->visible)
goto out;
if (segment != 0)
......@@ -513,13 +514,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
}
}
static void Manage (vout_display_t *vd)
{
vout_display_sys_t *sys = vd->sys;
vlc_xcb_Manage(vd, sys->conn, &sys->visible);
}
static void ResetPictures (vout_display_t *vd)
{
vout_display_sys_t *sys = vd->sys;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment