Commit 48255261 authored by Laurent Aimar's avatar Laurent Aimar

Factorized and added missing vout_SendEventMouseVisible calls.

parent 2646299f
......@@ -445,6 +445,12 @@ static void VoutDisplayEventMouse(vout_display_t *vd, const vlc_mouse_t *mouse)
osys->mouse.state = m;
vout_SendDisplayEventMouse(osys->vout, &m);
/* */
osys->mouse.is_hidden = false;
if (!vd->info.has_hide_mouse)
osys->mouse.last_moved = mdate();
vout_SendEventMouseVisible(osys->vout);
}
static void VoutDisplayEvent(vout_display_t *vd, int event, va_list args)
......@@ -485,11 +491,6 @@ static void VoutDisplayEvent(vout_display_t *vd, int event, va_list args)
msg_Dbg(vd, "VoutDisplayEvent 'mouse' @%d,%d", x, y);
/* */
osys->mouse.is_hidden = false;
if (!vd->info.has_hide_mouse)
osys->mouse.last_moved = mdate();
vout_SendEventMouseVisible(osys->vout);
vlc_mouse_t m = osys->mouse.state;
m.i_x = x;
m.i_y = y;
......@@ -513,11 +514,6 @@ static void VoutDisplayEvent(vout_display_t *vd, int event, va_list args)
/* */
msg_Dbg(vd, "VoutDisplayEvent 'mouse button' %d t=%d", button, event);
osys->mouse.is_hidden = false;
if (!vd->info.has_hide_mouse)
osys->mouse.last_moved = mdate();
vout_SendEventMouseVisible(osys->vout);
vlc_mouse_t m = osys->mouse.state;
m.b_double_click = false;
if (event == VOUT_DISPLAY_EVENT_MOUSE_PRESSED)
......
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