]> git.sesse.net Git - vlc/commitdiff
XCB/XVideo: implement pf_control: handle zoom and stay-on-top
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 7 May 2009 20:00:29 +0000 (23:00 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 7 May 2009 20:00:29 +0000 (23:00 +0300)
modules/video_output/xcb/xvideo.c

index a82305016b0786dcce97da2cb8f8b707d12076d3..c1c589510472d89ba41eb6512c48c86d07c7c62b 100644 (file)
@@ -86,6 +86,7 @@ static int Init (vout_thread_t *);
 static void Deinit (vout_thread_t *);
 static void Display (vout_thread_t *, picture_t *);
 static int Manage (vout_thread_t *);
+static int Control (vout_thread_t *, int, va_list);
 
 int CheckError (vout_thread_t *vout, const char *str, xcb_void_cookie_t ck)
 {
@@ -208,6 +209,7 @@ static int Open (vlc_object_t *obj)
     vout->pf_end = Deinit;
     vout->pf_display = Display;
     vout->pf_manage = Manage;
+    vout->pf_control = Control;
     return VLC_SUCCESS;
 
 error:
@@ -577,3 +579,8 @@ HandleParentStructure (vout_thread_t *vout, xcb_connection_t *conn,
     vout->p_sys->width = width;
     vout->p_sys->height = height;
 }
+
+static int Control (vout_thread_t *vout, int query, va_list ap)
+{
+    return vout_ControlWindow (vout->p_sys->embed, query, ap);
+}