Commit 6cd86bc2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: reset the X11 screen saver when displaying a picture

(cherry picked from commit 48be35499d7545a31a160c7578ffa073f761e814)
parent e0803c9e
...@@ -468,8 +468,11 @@ static void PictureRender (vout_display_t *vd, picture_t *pic) ...@@ -468,8 +468,11 @@ static void PictureRender (vout_display_t *vd, picture_t *pic)
static void PictureDisplay (vout_display_t *vd, picture_t *pic) static void PictureDisplay (vout_display_t *vd, picture_t *pic)
{ {
vout_display_sys_t *sys = vd->sys; vout_display_sys_t *sys = vd->sys;
xcb_connection_t *conn = XGetXCBConnection (sys->display);
xcb_force_screen_saver (conn, XCB_SCREEN_SAVER_RESET);
vout_display_opengl_Display (&sys->vgl, &vd->source); vout_display_opengl_Display (&sys->vgl, &vd->source);
xcb_flush (conn);
picture_Release (pic); picture_Release (pic);
} }
......
...@@ -430,6 +430,8 @@ static void Display (vout_display_t *vd, picture_t *pic) ...@@ -430,6 +430,8 @@ static void Display (vout_display_t *vd, picture_t *pic)
if (!p_sys->visible) if (!p_sys->visible)
goto out; goto out;
xcb_force_screen_saver (p_sys->conn, XCB_SCREEN_SAVER_RESET);
if (segment != 0) if (segment != 0)
ck = xcb_shm_put_image_checked (p_sys->conn, p_sys->window, p_sys->gc, ck = xcb_shm_put_image_checked (p_sys->conn, p_sys->window, p_sys->gc,
/* real width */ pic->p->i_pitch / pic->p->i_pixel_pitch, /* real width */ pic->p->i_pitch / pic->p->i_pixel_pitch,
......
...@@ -675,6 +675,8 @@ static void Display (vout_display_t *vd, picture_t *pic) ...@@ -675,6 +675,8 @@ static void Display (vout_display_t *vd, picture_t *pic)
if (!p_sys->visible) if (!p_sys->visible)
goto out; goto out;
xcb_force_screen_saver (p_sys->conn, XCB_SCREEN_SAVER_RESET);
if (segment) if (segment)
ck = xcb_xv_shm_put_image_checked (p_sys->conn, p_sys->port, ck = xcb_xv_shm_put_image_checked (p_sys->conn, p_sys->port,
p_sys->window, p_sys->gc, segment, p_sys->id, 0, p_sys->window, p_sys->gc, segment, p_sys->id, 0,
......
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