Bug 437351 - [Xwayland] X11 GTK context menu remains until another X11 app is clicked
Summary: [Xwayland] X11 GTK context menu remains until another X11 app is clicked
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.21.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-19 10:52 UTC by Matthew Cline
Modified: 2022-07-14 13:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.