Bug 437351

Summary: [Xwayland] X11 GTK context menu remains until another X11 app is clicked
Product: [Plasma] kwin Reporter: Matthew Cline <matt>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: bugseforuns, nate, postix
Priority: NOR    
Version First Reported In: 5.21.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Matthew Cline 2021-05-19 10:52:00 UTC
When using the X11 GTK app workrave under a Plasma Wayland session, if I bring up its context menu by right clicking it (both the systray icon and the timer window will do) the context menu will remain up if I switch to and interact with a native Wayland app's window, and will only disappear if I either select an item from the context menu or I click in the window of another X11 app.

NOTE: to get workrave to run under Wayland the environmental variable GDK_BACKEND must be set to "x11", or workrave will immediately crash.
Comment 1 Patrick Silva 2021-10-30 14:50:52 UTC
I can reproduce with inkscape gtk2 on neon unstable.

1. on Wayland, open any app (Xwayland or Wayland, no matter) and inkscape
2. in inkscape, right-click on the area used to draw things
3. switch to another app by pressing alt+tab

Result: context menu of inkscape remains open.

Probably it's a Xwayland bug because I can also reproduce on Wayland session
of Gnome.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 2 postix 2022-07-14 13:40:04 UTC
Can confirm on Plasma 5.25.2 Wayland on openSUSE TW.