On Sunday, 2013-08-11, Stephan Sokolow wrote: > 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.
There are separate calls for "Activate" and "ContextMenu". An application can provide both. The host can call Activate on left-click and ContextMenu on right-click. > 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.) Kopete uses both. > 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") Amarok does both as well. Just examples of programs I use that offer different functions for different mouse button clicks. Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ 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
