https://bugs.kde.org/show_bug.cgi?id=375951

--- Comment #11 from Chris Holland <zrenf...@gmail.com> ---
Well I've gotten a little closer this weekend.

https://streamable.com/wq7g1

I've managed to modify the appmenu widget's AppMenuModel to support passing a
specific windowId. The hardest with exposing the windowId is that it uses the
datatype WId, which QML doesn't recognize. I wasn't sure how to register a
primitive, as WId is apparently an "unsigned long long int" (on my X11 system
at least). I got stuck trying to expose that till I found the qulonglong
datatype.

I've managed to mask the caption, using a 10px wide gradient, when it falls
behind the appmenu.

I tried exposing the "ActionId" role of the menu items, and calling:

    decoration.requestShowApplicationMenu(rect, actionId);

but it seems that's not the right way to do that, as you can see in the video.

To properly do it, the appmenu widget appears to create a new QMenu when a
"menu bar item" is triggered. It calls a function in the plasmoid
nativeInterface.

https://github.com/KDE/plasma-workspace/blob/master/applets/appmenu/lib/appmenuapplet.cpp#L164

Here's the kwin + plasma-workspace patches to get what I have so far.
https://gist.github.com/Zren/7b72293743f39b2b2ebac3d11f3ad59b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to