Commit c292144a authored by ssbssa's avatar ssbssa Committed by Jean-Baptiste Kempf
Browse files

win32/events: use HideMouse() timer only if vout HWND exists



Close #19368
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent cb65a8a4
......@@ -134,6 +134,7 @@ static void UpdateCursorMoved( event_thread_t *p_event )
{
UpdateCursor( p_event, true );
p_event->last_moved = mdate();
if( p_event->hwnd )
SetTimer( p_event->hwnd, (UINT_PTR)p_event, p_event->hide_timeout, HideMouse );
}
......@@ -481,6 +482,7 @@ event_thread_t *EventThreadCreate( vout_display_t *vd)
p_event->button_pressed = 0;
p_event->psz_title = NULL;
p_event->source = vd->source;
p_event->hwnd = NULL;
atomic_init(&p_event->has_moved, false);
vout_display_PlacePicture(&p_event->place, &vd->source, vd->cfg, 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