Xpra: Ticket #1092: mupdf not responding to key events

This is probably a minor problem peculiar to this particular program, but perhaps the underlying bug is implicated in other problems, too.

The program in question is an extremely fast pdf reader called mupdf http://mupdf.com/ I downloaded the program from the website and compile it. I use it to quickly peek a pdf document. In version 0.15, I can use the usual keyboard shortcuts to resize the window (e.g. + or -) reload the page (r) etc. However, none of these single key shortcuts work in 0.16. I don't see any error in the log on the server or client side.

My systems are 64 bit 0.16.1-1 beta, released on Dec. 30 2015, on Ubuntu 14.04, both installed from the beta .deb files from the xpra website (thank you for keeping us trusty people afloat with these beta packages!) I am using rgb raw images with lz4 compression.

As I said, I have only observed the problem with mupdf, but not many other programs use single key shortcuts so this may affect other things as well.

Also, it appears 0.16 branch has much better-behaved audio and the audio-video sync is much better, just as promised! Thank you for these improvement!



Sun, 24 Jan 2016 06:44:20 GMT - Antoine Martin: status changed

As I said, I have only observed the problem with mupdf, but not many other programs use single key shortcuts so this may affect other things as well.


Thanks for reporting this!


Confirmed. With 0.15.x server (client version makes no difference):


With 0.16:

Bar some logging differences, the steps look identical.

xev shows identical events:

KeyPress event, serial 37, synthetic NO, window 0xc00001,
    root 0x25d, subw 0x0, time 11193155, (88,90), root:(2083,194),
    state 0x11, keycode 21 (keysym 0x2b, plus), same_screen YES,
    XLookupString gives 1 bytes: (2b) "+"
    XmbLookupString gives 1 bytes: (2b) "+"
    XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0xc00001,
    root 0x25d, subw 0x0, time 11193227, (88,90), root:(2083,194),
    state 0x11, keycode 21 (keysym 0x2b, plus), same_screen YES,
    XLookupString gives 1 bytes: (2b) "+"
    XFilterEvent returns: False

So I suspect that the problem is not in the keyboard layer but maybe focus related instead. One way to identify the problem would be to bisect it...


Sun, 24 Jan 2016 07:22:19 GMT - Antoine Martin: priority changed

r9839 is the problem, and it is focus related.


Sun, 24 Jan 2016 07:34:56 GMT - Antoine Martin:

Should be fixed in r11742, will backport.


Sun, 24 Jan 2016 23:16:08 GMT - Antoine Martin: owner, status changed

Backport to v0.16.x in r11748, there are beta builds for trusty with this fix.

If this works for you, please close this ticket. Many thanks for reporting this regression!


Mon, 25 Jan 2016 04:09:44 GMT - Jiang: status changed; resolution set

This defect is fixed in the latest beta. Thank you for that!

However, mupdf is still not behaving properly as before or as under forwarded X11 window. I've filed a new ticket #1097.


Sat, 23 Jan 2021 05:14:45 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1092