I got in touch with Aurélien, who wrote the original libdbusmenu-qt code, in case he has any ideas. This is a bit tricky for me, as I can only justify spending a limited time on it (my main area is graphics driver work), and while I could probably fix something up that would work for me, I don't understand the code well enough to be confident that I am not causing regressions - in particular I do not even have a test case for the original issue (the test in the commit just checks the fix, not the problem).
I got in touch with Aurélien, who wrote the original libdbusmenu-qt code, in case he has any ideas. This is a bit tricky for me, as I can only justify spending a limited time on it (my main area is graphics driver work), and while I could probably fix something up that would work for me, I don't understand the code well enough to be confident that I am not causing regressions - in particular I do not even have a test case for the original issue (the test in the commit just checks the fix, not the problem).