Summary: | KWin on X11 doesn't support _GTK_SHOW_WINDOW_MENU hint/message. | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Emilio Cobos Álvarez (:emilio) <emilio> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | kde, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/7e1617c2808b7c9b23a8c786327fc88212e10b32 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Test program which does what I want to do on Firefox |
Description
Emilio Cobos Álvarez (:emilio)
2022-06-02 16:11:31 UTC
Happy to try fixing this with some pointers btw. Find the code for X11 frame extents: 84d75cb5674577098d584c7f3634ea2a81d8b9f2 then it's mostly a c&p job. that'll show you roughly what's needed: - create the right atom in atoms.cpp - announce we support it in netinfo.cpp - watch for the new X11 event in events.cpp Then call into the existing code we have for wayland to show a menu Thanks! For my own reference, that's https://invent.kde.org/plasma/kwin/-/commit/84d75cb5674577098d584c7f3634ea2a81d8b9f2 Ok, I think this should do. Works properly with a local build and: * https://invent.kde.org/frameworks/kwindowsystem/-/merge_requests/58 * https://invent.kde.org/plasma/kwin/-/merge_requests/2495 There's a test failure in the former MR which I need to investigate, seems I just need to add the expected atom somewhere. (In reply to Emilio Cobos Álvarez (:emilio) from comment #4) > There's a test failure in the former MR which I need to investigate, seems I > just need to add the expected atom somewhere. (This is now fixed) Git commit c3fa9cada231ba14f281d1a2fc46e240d0440517 by Emilio Cobos Álvarez. Committed on 10/06/2022 at 12:55. Pushed by davidedmundson into branch 'master'. Implement _GTK_SHOW_WINDOW_MENU. M +4 -0 autotests/netrootinfotestwm.cpp M +2 -0 src/netwm_def.h M +1 -0 src/platforms/xcb/atoms_p.h M +31 -0 src/platforms/xcb/netwm.cpp M +30 -0 src/platforms/xcb/netwm.h https://invent.kde.org/frameworks/kwindowsystem/commit/c3fa9cada231ba14f281d1a2fc46e240d0440517 Git commit 7e1617c2808b7c9b23a8c786327fc88212e10b32 by Vlad Zahorodnii, on behalf of Emilio Cobos Álvarez. Committed on 14/06/2022 at 06:55. Pushed by vladz into branch 'master'. [x11] Implement _GTK_SHOW_WINDOW_MENU. M +10 -1 src/netinfo.cpp M +1 -0 src/netinfo.h M +7 -0 src/x11window.cpp M +1 -0 src/x11window.h https://invent.kde.org/plasma/kwin/commit/7e1617c2808b7c9b23a8c786327fc88212e10b32 |