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

XCB: allow mouse coordinates out rendering source area

This fixes problems with hiding the cursor while it is within the
"black bars". This should also improve gestures usability.
parent 4ce1f5d9
...@@ -75,8 +75,6 @@ static void HandleMotionNotify (vout_display_t *vd, xcb_connection_t *conn, ...@@ -75,8 +75,6 @@ static void HandleMotionNotify (vout_display_t *vd, xcb_connection_t *conn,
const int y = vd->source.i_y_offset + const int y = vd->source.i_y_offset +
(int64_t)(ev->event_y - place.y) * vd->source.i_visible_height/ place.height; (int64_t)(ev->event_y - place.y) * vd->source.i_visible_height/ place.height;
if (x >= vd->source.i_x_offset && x < vd->source.i_x_offset + vd->source.i_visible_width &&
y >= vd->source.i_y_offset && y < vd->source.i_y_offset + vd->source.i_visible_height)
vout_display_SendEventMouseMoved (vd, x, y); vout_display_SendEventMouseMoved (vd, x, y);
} }
......
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