[vlc-devel] commit: XCB: allow mouse coordinates out rendering source area ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Nov 1 12:29:21 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 1 13:27:55 2009 +0200| [89adde80692c965642491e1fa8d83f8a703bb09b] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89adde80692c965642491e1fa8d83f8a703bb09b
---
modules/video_output/xcb/events.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/xcb/events.c b/modules/video_output/xcb/events.c
index 99049f3..6da22fb 100644
--- a/modules/video_output/xcb/events.c
+++ b/modules/video_output/xcb/events.c
@@ -75,9 +75,7 @@ static void HandleMotionNotify (vout_display_t *vd, xcb_connection_t *conn,
const int y = vd->source.i_y_offset +
(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);
}
static void HandleVisibilityNotify (vout_display_t *vd, bool *visible,
More information about the vlc-devel
mailing list