I've tried Xvfb and Xdummy (using the sample configuration xorg.conf).
The mouse reacts as expected.
For native applications keyboard and mouse work as expected.
Confirmed (tested with jedit). What is a little strange is that I can reproduce this bug with versions as old as 0.3.x, surely it hasn't been broken for that long since I remember testing some java apps (josm) with those releases..
Got it: this is nothing new and affects all versions.
It's a focus problems which seems to prevent Java applications from gaining the window focus, you can workaround the problem by focusing away then back to the Java application - but even that is not reliable!
I had a look yesterday as well because I wanted to go back to the last working version in order to have a working keyboard. To my astonishment the last version I had installed and worked was 0.3.2. That would confirm your observation.
Replying to antoine:
Got it: this is nothing new and affects all versions.
It's a focus problems which seems to prevent Java applications from gaining the window focus, you can workaround the problem by focusing away then back to the Java application - but even that is not reliable!
I had known that problem as well but it didn't work for me yesterday.
A selection of tickets and pointers to related issues:
More external pointers:
Trying to change our code to match those examples does not solve the problem...
Re #138: I wanted to try to reverse that specific change but the code has changed significantly since then. One new development: I've played around with the focus and it seems when a dialog window with a textbox comes up the text field won't receive keyboard input. However, when I put the main window into focus, the text field in the dialog does receive keyboard input. So far I haven't found a way to reveive keyboard input in the main window.
One more datapoint: if I use jdk6 then I have fewer focus problems and even when there are problems, clicking again on the field/area solves it.
with this patch - focus works with JDK6
With JDK6: it may even work without the patch above (not tested), and it definitely works with the patch.
I can confirm the patch works with sun jdk 6, however it doesn't work server side with jdk7 (icedtea).
This was all a wild goose chase, found the bug with good old print statements by looking at the "input" member of WMHints
and noticing it was not a boolean... r2003 fixes this.
Will backport to all branches. Please confirm this works for you.
I can confirm this change works for jdk7 (icedtea) also. Well done, thank you!
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/201