xvimagesink: event handling fixes
Submitted by Farkas Levente
(by default) on linux if we use xvimagesink as an overlay component it's does not propagate mouse move, enter and leave events (but automatically redraw itself as needed). if we set xvimagesink's "handle-events" properties to false then we got mouse move, but still can't get mouse enter and mouse leave. but in this case (ie. "handle-events" false) xvimagesink don't handle expose events either (even if "handle-expose" still set to true).
in gstreamer-java we capture all XEvents and propagate the expose and all mouse events by ourself, but imho it's a bug in the current xvimagesink implementation.
it'd be nice to clearly document what is the
means and be able to somehow get our expected result. which is:
- got mouse move, enter, leave
- and also automatically redraw itself in case it's needed (ie: ExposureMask | VisibilityChangeMask | StructureNotifyMask | FocusChangeMask)
ps. anyway on windows's videosinks (all) everything working as expected.