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

display: remove VOUT_DISPLAY_HIDE_MOUSE handling (refs #18661)

parent 092f7f94
......@@ -113,9 +113,6 @@ typedef struct {
typedef struct {
bool is_slow; /* The picture memory has slow read/write */
bool has_double_click; /* Is double-click generated */
bool needs_hide_mouse; /* Needs VOUT_DISPLAY_HIDE_MOUSE,
* needs to call vout_display_SendEventMouseMoved()
* or vout_display_SendEventMouseState() */
bool has_pictures_invalid; /* Will VOUT_DISPLAY_EVENT_PICTURES_INVALID be used */
const vlc_fourcc_t *subpicture_chromas; /* List of supported chromas for subpicture rendering. */
} vout_display_info_t;
......@@ -124,10 +121,6 @@ typedef struct {
* Control query for vout_display_t
*/
enum {
/* Hide the mouse. It will be sent when
* vout_display_t::info.needs_hide_mouse is true */
VOUT_DISPLAY_HIDE_MOUSE VLC_DEPRECATED_ENUM,
/* Ask to reset the internal buffers after a VOUT_DISPLAY_EVENT_PICTURES_INVALID
* request.
*/
......
......@@ -92,7 +92,6 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
vd->info.is_slow = false;
vd->info.has_double_click = false;
vd->info.needs_hide_mouse = false;
vd->info.has_pictures_invalid = false;
vd->info.subpicture_chromas = NULL;
......@@ -733,9 +732,7 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
if (hide_mouse) {
msg_Dbg(vd, "auto hiding mouse cursor");
if (vout_HideWindowMouse(osys->vout, true) != VLC_SUCCESS
&& vd->info.needs_hide_mouse)
vout_display_Control(vd, VOUT_DISPLAY_HIDE_MOUSE);
vout_HideWindowMouse(osys->vout, true);
}
bool reset_render = false;
......
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