-keyhook 参数不适用于 Windows 10 上的 VcXsrv

Vic*_*res 5 windows linux keyboard-shortcuts windows-subsystem-for-linux vcxsrv

我正在使用适用于 Linux 的 Windows 子系统和 VcXsrv 以全屏模式运行 Xfce。我想使用Alt+Tab在打开的 Xfce 程序之间切换。但是,当我按Alt+时Tab,它会触发 Windows 的应用程序切换。我已经尝试过这个论点-keyhook但没有成功。AltGr当我必须使用 Virtual Box来逃离虚拟机窗口时,我可以使用 Virtual Box 归档类似的行为。

kdb*_*kdb 2

使用 X2Go,我必须稍微调整默认服务器设置才能使其正常工作。(来源:programmersought.com)

目前我正在运行服务器:

"C:\Program Files (x86)\x2goclient\VcXsrv\vcxsrv.exe" -clipboard -nopn :0 -keyhook -rootless
Run Code Online (Sandbox Code Playgroud)

对于我(Windows 10,v1903)来说,解决方案是-keyhook结合使用-rootless. 在-multiwindow模式下,Meta按键被捕获,但Alt+未被捕获Tab

特别是对于 X2Go,设置对我来说是这样的:

在此输入图像描述

.-- Settings -------------------------------------------------------------------.
|   .---------.----------.-----------------------.--------------------.         |
|   | General | Printing | X.Org Server Settings | PulseAudio Settings|         |
| .----------------------'                       '----------------------------. |
| | You must restart the X2Go Client for the changes to take effect           | |
| |                                                                           | |
| |                                                                           | |
| |                                                                           | |
| |                                                                           | |
| | ( ) use integrated X-Server                                               | |
| | [ ] do not use primary clipboard                                          | |
| | (x) use custom X-Server                                                   | |
| |                                                                           | |
| | .-- custom X-server ----------------------------------------------------. | |
| | |             .------------------------------------------------------.  | | |
| | | executable: | C:/Program Files (x86)/x2goclient/VcXsrv/vcxsrv.exe  |  | | |
| | |             '------------------------------------------------------'  | | |
| | | [x] start X-server on X2Go Client start                               | | |
| | |                       .--------------------------------------------.  | | |
| | | command line options: | -clipboard -nopn :0 -keyhook -rootless     |  | | |
| | |                       '--------------------------------------------'  | | |
| | '-----------------------------------------------------------------------' | |
| |                                            .----. .--------. .----------. | |
| |                                            | OK | | Cancel | | Defaults | | |
| |                                            '----' '--------' '----------' | |
| '---------------------------------------------------------------------------' |
'-------------------------------------------------------------------------------'
Run Code Online (Sandbox Code Playgroud)