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

WSLg always losing focus if applications separate into different desktops #1246

Open LiaoyuanSHEN opened 1 month ago

LiaoyuanSHEN commented 1 month ago

Windows build number:

10.0.22631.3593

Your Distribution version:

22.04

Your WSL versions:

WSL 版本: 2.1.5.0 内核版本: 5.15.146.1-2 WSLg 版本: 1.0.60 MSRDC 版本: 1.2.5105 Direct3D 版本: 1.611.1-81528511 DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows 版本: 10.0.22631.3593

Steps to reproduce:

  1. open several windows in wsl2, in my case I was running IDEA and WebStorm
  2. create a new desktop as this guide said.
  3. drag IDEA into the new desktop
  4. now if you going to the WebStorm or IDEA, and use your mouse hover on "terminal" button and wait for the tooltips pop out. image
  5. then if you click the "terminal" button first time it will do nothing, and you have to click it second time the button will finally be clicked.

WSL logs:

No response

WSL dumps:

No response

Expected behavior:

No response

Actual behavior:

Actually the window focusing the tooltip which just pop out, so the first time click just changing the focus into the WebStorm from the tooltip. I'm not sure if this is a Windows bug or WSLg bug, but I'm using multiple desktop in native windows without any issue so I'm here to ask anyone could help me?