Xpra: Ticket #1152: intercept all keys before the desktop

From this mailing list discussion: windows key and forward them to the server.

The Virtual-Key Codes shows VK_LWIN as 0x5B and VK_RWIN as 0x5c.

Looks like we will need Python and SetWindowsHookExA. Alternatively we could use pyhk. (meh)

This is for win32, not sure what we can do for X11 without grabbing the keyboard..



Sat, 26 Mar 2016 12:56:51 GMT - Antoine Martin: status changed

Mostly done in r12226, still TODO:


Sat, 26 Mar 2016 17:50:15 GMT - Antoine Martin: owner, status changed

Tested using xev to see the Super_R event server side, I cannot test with the left hand side windows key because my virtualbox VM does not pass it through to the guest.

@afarr: mostly a FYI, I don't think you want to capture the windows key in your setup. New beta build uploaded. Feel free to test or just close it.


Wed, 30 Mar 2016 03:24:46 GMT - John1221: cc set


Wed, 30 Mar 2016 04:04:56 GMT - Antoine Martin:

@johnss1221: there are windows beta builds including this change - does this work for you? (see comment:2 for enabling it)


Fri, 15 Apr 2016 14:36:28 GMT - Antoine Martin:

Not heard back, so I'll assume that this works as expected.

@afarr: feel free to test or just close.


Thu, 19 May 2016 01:26:31 GMT - alas: status changed; resolution set

Tried to test a little, but I'm not sure what windows keyboard commands I can expect a fedora server to know what to do with.

Maybe maxmylyn will test with a shadow server... in any case though, I'll close this.


Sun, 22 May 2016 10:02:06 GMT - Antoine Martin:

This is now enabled by default when grabs are active, see ticket:1195#comment:1


Sat, 23 Jan 2021 05:16:25 GMT - migration script:

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