Question : What about adding an option to switch on/off key/mouse event handling at the plugin level (at least, when not in fullscreen mode) ?
As a test, just by commenting the following X11 line in modules/video_output/x11/xcommon.c, QT4 widget can then display video sent by libvlc and yet respond to key/mouse event from the QT4 architecture.
Actually, even the qt4 GUI interface could benefit from it. (Today, on Linux, you cannot access ALT-sthg to reach menus if the mouse is situated on the video widget, because of key/mouse handling at the plugin level)XSelectInput( p_vout->p_sys->p_display, p_win->base_window,
StructureNotifyMask | KeyPressMask |
ButtonPressMask | ButtonReleaseMask |
PointerMotionMask);