microsoft / wslg

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

Ctrl-shift-0 is not getting captured by an emacs wayland application #1170

Open freddyholms opened 6 months ago

freddyholms commented 6 months ago

Windows build number:

2263.1.2861

Your Distribution version:

22.04

Your WSL versions:

WSL version: 2.0.9.0 Kernel version: 5.15.133.1-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22631.2861

Steps to reproduce:

I installed podman inside the ubuntu vm and launched an arch container with

podman run -it -d -v $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/tmp/$WAYLAND_DISPLAY:ro \
        -e MOZ_ENABLE_WAYLAND=1 \
        -e XDG_SESSION_TYPE=wayland \
        -e GDK_BACKEND=wayland \
        -e QT_QPA_PLATFORM=wayland \
        -e XDG_RUNTIME_DIR=/run/user/1000 \
        -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY \
        -e PULSE_SERVER=/run/user/1000/pulse/native \
        -v /run/user/1000:/run/user/1000 \
        -v /home/my-username/share-podman:/home \
        -v /mnt:/mnt \
        -v /dev:/dev \
        --device /dev/dri \
        --name emacs docker.io/archlinux:latest

Inside this container I installed emacs-wayland. When I launch it I get to see the gui just fine (save for the window missing the maximize icon, but I can maximize by double clicking the top bar). There is a command in emacs I use a lot that is bound to the combination Ctrl-shift-0. Every time I press this combination, nothing happens. I even tried the on-screen keyboard. There are other combinations that don't work, but I can tell they dont because they change tabs or bring up a menu or something. For Ctrl-shift-0, nothing happens, it just doesnt register at all. Is there a way to remove whatever shortcut is getting captured? I already checked and it is not the language shift shortcut (disabled that and it still did not fix the problem).

WSL logs:

No response

WSL dumps:

No response

Expected behavior:

I just need ctrl-shift-0 to be detected inside the vm. Most other shortcuts and keybinds are, but not this one.

Actual behavior:

Ctrl-shift-0 is not getting detected at all inside the emacs application.