microsoft / wslg

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

`other-frame` does not work in Emacs #1022

Open LemonBreezes opened 1 year ago

LemonBreezes commented 1 year ago

Windows build number:

10.0.19045.2604

Your Distribution version:

2.13

Your WSL versions:

WSL version: 1.1.3.0 Kernel version: 5.15.90.1 WSLg version: 1.0.49 MSRDC version: 1.2.3770 Direct3D version: 1.608.2-61064218 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.19045.2604

Steps to reproduce:

  1. Install Emacs (I am using Emacs30 from Git)
  2. Open a vanilla Emacs session with emacs -Q
  3. Open a second Emacs frame with C-x 5 2
  4. Attempt to switch between the two frames with C-x 5 o

WSL logs:

No response

WSL dumps:

No response

Expected behavior:

The other-frame command on C-x 5 o should switch between the two Emacs frames.

Actual behavior:

The other frame is not focused. It looks to me like the current frame goes out of focus but input focus is not redirected and the other frame is not raised.

mcraveiro commented 5 months ago

I have this issue. In fact, more generally, the focus is a bit weird with Emacs; when on full screen, if I hover with the mouse around the Emacs window it seems to get raised automatically. This means I need to un-maximise Emacs to be able to use the regular windows applications.