mpv/input
wm4 3273db1ef7 client API, X11: change default keyboard input handling again
Commit 64b7811c tried to do the "right thing" with respect to whether
keyboard input should be enabled or not. It turns out that X11 does
something stupid by design. All modern toolkits work around this native
X11 behavior, but embedding breaks these workarounds.

The only way to handle this correctly is the XEmbed protocol. It needs
to be supported by the toolkit, and probably also some mpv support. But
Qt has inconsistent support for it. In Qt 4, a X11 specific embedding
widget was needed. Qt 5.0 doesn't support it at all. Qt 5.1 apparently
supports it via QWindow, but if it really does, I couldn't get it to
work.

So add a hack instead. The new --input-x11-keyboard option controls
whether mpv should enable keyboard input on the X11 window or not. In
the command line player, it's enabled by default, but in libmpv it's
disabled.

This hack has the same problem as all previous embedding had: move the
mouse outside of the window, and you don't get keyboard input anymore.
Likewise, mpv will steal all keyboard input from the parent application
as long as the mouse is inside of the mpv window.

Also see issue #1090.
2014-09-28 20:11:00 +02:00
..
cmd_list.c input: fix nested commands 2014-09-13 18:41:34 +02:00
cmd_list.h input: distinguish playlist navigation and quit commands for abort 2014-09-13 16:47:30 +02:00
cmd_parse.c input: fix use after free with legacy commands 2014-09-08 15:13:11 +02:00
cmd_parse.h input: split off some code from input.c to separate files 2013-12-26 17:13:25 +01:00
event.c input: change mp_input_run_cmd signature 2014-01-04 19:42:16 +01:00
event.h Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
input.c client API, X11: change default keyboard input handling again 2014-09-28 20:11:00 +02:00
input.h client API, X11: change default keyboard input handling again 2014-09-28 20:11:00 +02:00
joystick.c input: remove useless joystick.h/lirc.h include files 2014-09-10 00:51:36 +02:00
keycodes.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
keycodes.h input: make key bindings like "Shift+X" work (for ASCII) 2014-08-26 20:39:28 +02:00
lirc.c input: remove central select() call 2014-09-10 03:24:45 +02:00
pipe-unix.c input: use libwaio for pipe input on Windows 2014-09-14 16:24:01 +02:00
pipe-win32.c input: use libwaio for pipe input on Windows 2014-09-14 16:24:01 +02:00