https://bugs.kde.org/show_bug.cgi?id=454756
Bug ID: 454756 Summary: KWin on X11 doesn't support _GTK_SHOW_WINDOW_MENU hint/message. Product: kwin Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwin-bugs-n...@kde.org Reporter: emi...@crisal.io Target Milestone: --- Created attachment 149407 --> https://bugs.kde.org/attachment.cgi?id=149407&action=edit Test program which does what I want to do on Firefox (Please move the component if I got it wrong) SUMMARY GTK has a `gdk_window_show_window_menu` API, which is useful to show the context menu on applications that use CSD: * https://docs.gtk.org/gdk3/method.Window.show_window_menu.html On Wayland, this is implemented via `xdg_toplevel::show_window_menu` and it works as expected on KWin: https://wayland.app/protocols/xdg-shell#xdg_toplevel:request:show_window_menu On X11, however, it's implemented using a WM hint+message called `_GTK_SHOW_WINDOW_MENU`, used like this: https://gitlab.gnome.org/GNOME/gtk/-/blob/ad5c3168a9f21c3f387df09ce5cd501a9ea1b2d8/gdk/x11/gdksurface-x11.c#L4769-4796 For parity, it'd be great to have it supported on X11 too. One example where this doesn't work is Firefox's PiP window. Right-clicking there on KWin-on-Wayland, or in GNOME (Wayland or X11), shows the native context-menu to allow to move / position / etc the window. I wanted to extend this so that we also allow showing the native menu where using CSD / not showing the native titlebar in https://phabricator.services.mozilla.com/D147771. However on Plasma+X11 it doesn't do anything, which is unfortunate. STEPS TO REPRODUCE 1. `python <test-program>` 2. Right-click on the window area. See a context menu pop up. 3. Click on the context menu item. OBSERVED RESULT Nothing EXPECTED RESULT A popup, like on Wayland, with the native menu. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Trunk -- You are receiving this mail because: You are watching all bug changes.