On 13-08-10 01:07 PM, Kevin Krammer wrote: > > I am not sure how it does it exactly but it definitely does it. > E.g. left clicking the Amarok icon toggles main window visiblity and Amarok is > using KSystemNotifierItem for its tray integration. > > I did a quick code search and it seems this is communicated via a property on > the D-Bus object. If the property "ItemIsMenu" is true, left click will call > the ContextMenu D-Bus method, otherwise (propery is false or missing) it will > call the Activate D-Bus method. >
Ok, that's a relief. I checked all of my tray icons and it looks like the developers could implement something comfortably sane with that kind of "one action, but you choose which one" limitation, should they choose to drop the XEmbed implementation. Most of them already either have fairly useless context menus or, like Parcellite, have no main window and already display a context menu on left-click. The ones that might be an issue without separate left- and right-click behaviours, should their developers ever abandon XEmbed are: 1. Pidgin (I don't mind only having "toggle visibility" and the context menu does have a lot of stuff that is used infrequently enough to be only accessed via the main window (eg. shortcuts to the accounts and preferences dialogs), but I can see people complaining about needing an extra click to do things like changing their status to/from Away/Busy/etc.) 2. Audacious Media Player (Not everyone uses the global keybindings plugin to toggle main window visibility like I do, I wouldn't want to HAVE to take my hand off the mouse to toggle visibility, and the context menu has useful options like Play/Pause and "quit the damn application so I can re-launch it to get the playlist responding to keystrokes again") ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Lxde-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxde-list
