Useful for desktops other than xfdesktop. (I'm currently using it with rox-filer, itself hacked to allow commands to be executed on pinboard clicks.)
Created attachment 697 Window list popup binary (xfce4-popup-windowlist) & support code
Hmm, we need to change bugzilla to assign the windowlist bugs to me... Anyway, I'm not sure what to do with this ;-) On one hand it is a cool feature and for some people it will be very useful. On the other hand, I would like the panel plugins to remain as simple as possible and I'm not entirely convinced about the usefulness for the 'average user' of Xfce (whoever that may be ;-). I probably won't add it before 4.4.0, but I will certainly consider it for a later release.
Maybe all what you are looking for is xfdesktop -windowlist?
"xfdesktop -windowlist" would work were xfdesktop running. But it isn't, and using that command will start it - and it'll open its window, obscuring the pinboard window which I'm using, but it won't open the menu. xfce4-popup-windowlist is intended to complement xfce4-popup-menu (which should really, IMO, be in xfce4-panel along with the menu popup).
Created attachment 717 Make the menu respond properly to keypresses. This patch doesn't exactly depend on the other one, but it's a good idea *with* it since the menu can be opened via a keybinding. Bindings are: Return or Space == button 1, either + Shift == button 2, either + Ctrl == button 3. (Menu also works as button 3.)
Ok, committed in SVN revision 22782. Thanks a lot. For the keypresses, I connected to key-press-event and call the other functions without idle calls. Seems to work well for me, but it would be nice if you could confirm that.
It's working so far... It looks like something else has fixed the problem which made those idle calls appear to be necessary; the keybinding which I'm using to pop up the menu seems to be working properly too...
... ah. Looks like my partial reversion of xfwm4 22670 was the cause.