[vlc-devel] [vlc-commits] commit: Fixed mouse buttons state for msw vouts (close #3519). ( Laurent Aimar )

Rémi Denis-Courmont remi at remlab.net
Sun Jun 13 17:25:36 CEST 2010

----- Message d'origine -----
>        In addition, multiple threads prevent libvlc developers from easily
> (and legitimately) accessing mouse events when the mouse is over the video.
>        (the only solution is based global hooks, that are not really
> straightforward)

There is essentially no way to fix this, unless msw/* is rewritten to not need any window events. And I would assume this is not possible.

I actually plan to move the mouse clicks event handling from the display to the window, just like we already do for key presses, at least for X11. And it could be done for pointer position as well.

But I would assume the msw displays still need some other events, say window resize... And there is no generic way to hook into the window proc of the application. We would need to require that a certain main loop is used (say Qt4). I can only imagine how unhappy the bindings developers would be.

>        Imho, a clean solution would be to merge the two main threads (qt4
> and msw) in a single one, i.e one single event loop, that just
> dispatches messages to their right window procedures. The third thread
> is less of a problem, but still part of the equation (beware of blocking
> calls)

This is unlikely to work for libvlc. And it will be a PITA for non-embedded videos: the skins and Qt4 interfaces would have to provide the non-embedded videos too. And then what about when RC or HTTP is in use (but no "real" UI)?


More information about the vlc-devel mailing list