I use Xpra to run applications that use tray icons. Right-clicking those tray icons is supposed to pop up a context menu, but when I click their tray icons, nothing happens.
However, left-clicking those icons works as expected.
To get a more specific test case:
I have tried this on Xpra 3.0.4 , and the problem is still there.
(Please fix the ticket tags if they are wrong - I have no idea what to put there.)
I'm not sure if that's fixable. Tray icon support on Linux is an awful mess, it's possible that the tray icon implementation we use with your DE does not provide right click events. Maybe another does, or maybe not.
If you can, please post the client's -d tray
log output, and right click once on a tray icon.
I'm trying again, and now I can't even get it to run. Apparently, this time I'm doing something wrong... I'll try this again if I don't give up.
I know that tray icons are a problem, so I didn't have much hope for this - but I wanted to help reporting and diagnosing it, in case it turns out that I was wrong and this is actually simple.
Can you provide a screenshot, or logs? Do I need docker to reproduce this bug at all? And ssh? Can't you reproduce the problem with just a local session?
No, you don't need Docker - that is simply the easiest way for me to launch a "completely clean system" without even starting a virtual machine.
Yes, I can reproduce it with a local session.
I can post the log, but it's 33 Kb long, and I don't see a way to do a spoiler here...
I can post the log, but it's 33 Kb long, and I don't see a way to do a spoiler here...
No worries, if it's that easy to reproduce, I'll take it from here.
Problem confirmed.
What's weird is that we already have an undocumented hack for swapping the left and right buttons when using the StatusIcon
implementation: just hold shift whilst pressing the button.
But this hack doesn't help either!?
And both buttons work with a win32 client, the menu shows up. So at least I can try to manually inspect the difference in the packets.
Well, this bug wins the prize for the dumbest bit of code I've written: a right click should use button number 3, not 2... That's all there was to it. Sorry it's taken so long.
Fixed in r27457.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2729