microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.04k stars 300 forks source link

The Windows (aka Super) Key isn't Emitted to WSLG #672

Open manuth opened 2 years ago

manuth commented 2 years ago

Environment

Windows build number: 10.0.22000.0
Your Distribution version: 20.04
Your WSLg version: 1.0.26

Steps to reproduce

  1. Open a GUI which is supposed to respond to the Windows Key (such as QEMU or virt-manager)
  2. Press the Windows Key
  3. Notice, that Windows responds to the key rather than the GUI displayed using wslg

WSL logs:

Expected behavior

wslg should allow me to set whether the Win key should be redirected to wslg or the OS for individual windows.

Actual behavior

The Win key is always redirected to Windows.

silentbugs commented 1 year ago

Are there any updates on this?

froh commented 7 months ago

A number of Linux gui applications are affected by this, emacs being one of them. I'll happily take any work-around, too like reconfiguring the windows host, maybe adding some magic "super-key-prefix" on the windows side.

mahmoudimus commented 7 months ago

@froh, I have a workaround using AutoHotKey but it does not exhibit my ideal workflow. You can check it out on the AutoHotKey board forums here.