]> git.sesse.net Git - vlc/blobdiff - modules/video_output/xcb/xvideo.c
XCB: reset the X11 screen saver when displaying a picture
[vlc] / modules / video_output / xcb / xvideo.c
index 8b8190c96670b592992d3cf68cd5db981332b9e6..9a0ce12de0be9c854ec5db4fa865c403a3a6a437 100644 (file)
@@ -252,8 +252,8 @@ FindFormat (vout_display_t *vd,
             continue;
 
         /* VLC pads scanline to 16 pixels internally */
-        unsigned width = (fmt->i_width + 15) & ~15;
-        unsigned height = (fmt->i_height + 15) & ~15;
+        unsigned width = fmt->i_width;
+        unsigned height = fmt->i_height;
         xcb_xv_query_image_attributes_reply_t *i;
         i = xcb_xv_query_image_attributes_reply (conn,
             xcb_xv_query_image_attributes (conn, port, f->id,
@@ -685,6 +685,8 @@ static void Display (vout_display_t *vd, picture_t *pic)
 
     if (!p_sys->visible)
         goto out;
+    xcb_force_screen_saver (p_sys->conn, XCB_SCREEN_SAVER_RESET);
+
     if (segment)
         ck = xcb_xv_shm_put_image_checked (p_sys->conn, p_sys->port,
                               p_sys->window, p_sys->gc, segment, p_sys->id, 0,