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

Always re-arm the cursor hide timeout on movement (fixes: #3915)

At least with X11, the mouse may move without changing coordinates.
We need to re-arm the cursor hide timeout since the cursor was shown.
(cherry picked from commit ac6b127e)
parent 72348952
...@@ -459,15 +459,12 @@ static void VoutDisplayEventMouse(vout_display_t *vd, int event, va_list args) ...@@ -459,15 +459,12 @@ static void VoutDisplayEventMouse(vout_display_t *vd, int event, va_list args)
case VOUT_DISPLAY_EVENT_MOUSE_MOVED: { case VOUT_DISPLAY_EVENT_MOUSE_MOVED: {
const int x = (int)va_arg(args, int); const int x = (int)va_arg(args, int);
const int y = (int)va_arg(args, int); const int y = (int)va_arg(args, int);
if (x != osys->mouse.state.i_x || y != osys->mouse.state.i_y) {
//msg_Dbg(vd, "VoutDisplayEvent 'mouse' @%d,%d", x, y);
m.i_x = x; //msg_Dbg(vd, "VoutDisplayEvent 'mouse' @%d,%d", x, y);
m.i_y = y;
m.b_double_click = false; m.i_x = x;
} else { m.i_y = y;
is_ignored = true; m.b_double_click = false;
}
break; break;
} }
case VOUT_DISPLAY_EVENT_MOUSE_PRESSED: case 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