wslg icon indicating copy to clipboard operation
wslg copied to clipboard

GTK4 Applications with Popup menus become unresponsive after first click

Open smac89 opened this issue 11 months ago • 9 comments
trafficstars

Windows Version

Microsoft Windows [Version 10.0.22631.4541]

WSL Version

2.3.26.0

Are you using WSL 1 or WSL 2?

  • [x] WSL 2
  • [ ] WSL 1

Kernel Version

5.15.167.4-1

Distro Version

Arch

Other Software

Cambalache (flatpak ar.xjuan.Cambalache), version 0.94.0 Workbench (flatpak re.sonny.Workbench), version 46.1 GParted, version 1.6.0

Repro Steps

Launching any of the flatpak apps (including their non-flatpak versions) and attempting to click anything that resembles a popup or a dropdown menu, results in the menu becoming unresponsive with subsequent clicks.

Only GParted's popup's behaved well. I also noticed that Qt applications behave well. The problem only seems to arise with these newer GTK applcations, which may be due to CSD.

Expected Behavior

All applications with Popups should behave correctly

Actual Behavior

Workbench

https://github.com/user-attachments/assets/13a6fbf0-101f-41ea-9194-fd2f61a63216

Cambalache

https://github.com/user-attachments/assets/f75f2ff6-8eb8-45bf-9e7f-117570761f46

GParted

https://github.com/user-attachments/assets/69220b82-0388-4867-ac01-b2fdaa51acb5

Diagnostic Logs

Another one I tested, but didn't show is gnome-builder. Upon launching that one and attempting to move the popups, I get the following message in the logs:

Compositor doesn't support moving popups, relying on remapping

smac89 avatar Nov 27 '24 19:11 smac89

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

github-actions[bot] avatar Nov 27 '24 19:11 github-actions[bot]

Diagnostic information
.wslconfig found
	Custom kernel command line found: 'audit=1'
Detected appx version: 2.3.26.0

github-actions[bot] avatar Nov 27 '24 19:11 github-actions[bot]

same problem

Soulize avatar Jan 16 '25 13:01 Soulize

same problem  同样的问题

got message (org.gnome.Nautilus:1722): Gdk-WARNING **: 21:50:25.906: Compositor doesn't support moving popups, relying on remapping

** (org.gnome.Nautilus:1722): WARNING **: 21:50:45.611: Unable to create connection for session-wide Tracker indexer: Timeout was reached

Soulize avatar Jan 16 '25 13:01 Soulize

I encountered the same issue, and I noticed that when clicking the pop-up menu for the second time, it actually appears behind the application window. Even if you move the application's main window, you still can't click on the pop-up menu that's hidden behind. Image Moreover, I found that this issue only occurs with GTK4 applications running on Wayland. If you launch the same application under X11 using the GDK_BACKEND=x11 environment variable, none of the above problems appear.

kusutori avatar Apr 04 '25 13:04 kusutori

i am also encountering this issue, and doing GDK_BACKEND=x11 fixes it, however this is a temporary solution and should be fixed

niceEli avatar Jul 30 '25 04:07 niceEli

I am not sure if this is the fix, but it seems to work for me (Debian Trixie/Testing WSL 2), installing xwayland, xwayland-run, xwaylandvideobridge. Hope this helps, at least with diagnosis.

byroniac avatar Aug 20 '25 21:08 byroniac

I am not sure if this is the fix, but it seems to work for me (Debian Trixie/Testing WSL 2), installing xwayland, xwayland-run, xwaylandvideobridge. Hope this helps, at least with diagnosis.

Well, I take that back. It seemed to fix one of my apps, but not gnome-text-editor.

byroniac avatar Aug 20 '25 21:08 byroniac