Commit 2341a17f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

vout: make has_hide_mouse true by default

Most video output displays either defer mouse hiding to the window
provider plugin, or do not handle the mouse events at all.
So that ought to be the default.

Also kepe the default in those display plugins that don´t handle
cursor hiding (notably X11 ones).
parent 758adf9e
...@@ -196,7 +196,6 @@ static int Open(vlc_object_t *object) ...@@ -196,7 +196,6 @@ static int Open(vlc_object_t *object)
sys->layer = var_InheritInteger(vd, MMAL_LAYER_NAME); sys->layer = var_InheritInteger(vd, MMAL_LAYER_NAME);
bcm_host_init(); bcm_host_init();
vd->info.has_hide_mouse = true;
sys->opaque = vd->fmt.i_chroma == VLC_CODEC_MMAL_OPAQUE; sys->opaque = vd->fmt.i_chroma == VLC_CODEC_MMAL_OPAQUE;
status = mmal_component_create(MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER, &sys->component); status = mmal_component_create(MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER, &sys->component);
......
...@@ -129,6 +129,7 @@ static int Open(vlc_object_t *object) ...@@ -129,6 +129,7 @@ static int Open(vlc_object_t *object)
/* Setup vout_display now that everything is fine */ /* Setup vout_display now that everything is fine */
vd->fmt = fmt; vd->fmt = fmt;
vd->info.has_pictures_invalid = true; vd->info.has_pictures_invalid = true;
vd->info.has_hide_mouse = false;
vd->pool = Pool; vd->pool = Pool;
vd->prepare = Prepare; vd->prepare = Prepare;
......
...@@ -191,6 +191,7 @@ static int Open(vlc_object_t *object) ...@@ -191,6 +191,7 @@ static int Open(vlc_object_t *object)
/* Setup vout_display now that everything is fine */ /* Setup vout_display now that everything is fine */
vd->fmt = fmt; vd->fmt = fmt;
vd->info.has_hide_mouse = false;
vd->pool = Pool; vd->pool = Pool;
vd->prepare = Prepare; vd->prepare = Prepare;
......
...@@ -198,7 +198,6 @@ static int Open (vlc_object_t *p_this) ...@@ -198,7 +198,6 @@ static int Open (vlc_object_t *p_this)
/* setup vout display */ /* setup vout display */
vout_display_info_t info = vd->info; vout_display_info_t info = vd->info;
info.subpicture_chromas = subpicture_chromas; info.subpicture_chromas = subpicture_chromas;
info.has_hide_mouse = true;
vd->info = info; vd->info = info;
vd->pool = Pool; vd->pool = Pool;
......
...@@ -1066,7 +1066,6 @@ static int OpenVideo(vlc_object_t *p_this) ...@@ -1066,7 +1066,6 @@ static int OpenVideo(vlc_object_t *p_this)
video_format_Clean( &vd->fmt ); video_format_Clean( &vd->fmt );
video_format_Copy( &vd->fmt, &sys->video.currentfmt ); video_format_Copy( &vd->fmt, &sys->video.currentfmt );
vd->info.has_hide_mouse = true;
vd->pool = PoolVideo; vd->pool = PoolVideo;
vd->prepare = PrepareVideo; vd->prepare = PrepareVideo;
vd->display = DisplayVideo; vd->display = DisplayVideo;
......
...@@ -299,13 +299,8 @@ static int Open(vlc_object_t *object) ...@@ -299,13 +299,8 @@ static int Open(vlc_object_t *object)
fmt.i_visible_width = sys->width; fmt.i_visible_width = sys->width;
fmt.i_visible_height = sys->height; fmt.i_visible_height = sys->height;
/* */
vout_display_info_t info = vd->info;
info.has_hide_mouse = true;
/* */ /* */
vd->fmt = fmt; vd->fmt = fmt;
vd->info = info;
vd->pool = Pool; vd->pool = Pool;
vd->prepare = NULL; vd->prepare = NULL;
vd->display = Display; vd->display = Display;
......
...@@ -237,7 +237,6 @@ static int Open (vlc_object_t *this) ...@@ -237,7 +237,6 @@ static int Open (vlc_object_t *this)
vout_display_info_t info = vd->info; vout_display_info_t info = vd->info;
info.has_pictures_invalid = false; info.has_pictures_invalid = false;
info.subpicture_chromas = subpicture_chromas; info.subpicture_chromas = subpicture_chromas;
info.has_hide_mouse = true;
/* Setup vout_display_t once everything is fine */ /* Setup vout_display_t once everything is fine */
vd->info = info; vd->info = info;
......
...@@ -207,14 +207,9 @@ static int Open(vlc_object_t *object) ...@@ -207,14 +207,9 @@ static int Open(vlc_object_t *object)
break; break;
} }
/* */
vout_display_info_t info = vd->info;
info.has_hide_mouse = true;
/* */ /* */
vd->sys = sys; vd->sys = sys;
vd->fmt = fmt; vd->fmt = fmt;
vd->info = info;
vd->pool = Pool; vd->pool = Pool;
vd->prepare = Prepare; vd->prepare = Prepare;
vd->display = Display; vd->display = Display;
......
...@@ -153,13 +153,8 @@ static int Open(vlc_object_t *object) ...@@ -153,13 +153,8 @@ static int Open(vlc_object_t *object)
fmt.i_chroma = chroma; fmt.i_chroma = chroma;
video_format_FixRgb(&fmt); video_format_FixRgb(&fmt);
/* */
vout_display_info_t info = vd->info;
info.has_hide_mouse = true;
/* */ /* */
vd->fmt = fmt; vd->fmt = fmt;
vd->info = info;
vd->pool = Pool; vd->pool = Pool;
vd->prepare = NULL; vd->prepare = NULL;
vd->display = Display; vd->display = Display;
......
...@@ -92,7 +92,7 @@ static vout_display_t *vout_display_New(vlc_object_t *obj, ...@@ -92,7 +92,7 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
vd->info.is_slow = false; vd->info.is_slow = false;
vd->info.has_double_click = false; vd->info.has_double_click = false;
vd->info.has_hide_mouse = false; vd->info.has_hide_mouse = true;
vd->info.has_pictures_invalid = false; vd->info.has_pictures_invalid = false;
vd->info.subpicture_chromas = NULL; vd->info.subpicture_chromas = NULL;
......
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