If you have "Quit" as one of the options on your desktop menu, with the stock command of "quit", it works just fine in the desktop menu - the session manager asks what you want to do, and you can gracefully leave X. But if you are using the desktop menu plugin in the panel and choose "quit" from the plugin, the panel closes but your session remains
Additional information: I'm using CVS everything, checked out on 5-10. Running session manager, xfdesktop, xfwm4, and xfce4-panel. Besides the desktop menu plugin, I also have a few launchers, the taskbar plugin, volume plugin, system load plugin, weather plugin, date-time plugin, systray plugin, and the graphical pager plugin running - all from cvs, or latest release versions from xfce4-goodies.
i don't have time to check this out right now, but i'm assuming the builtin quit() function doesn't behave the same in the panel as it does in xfdesktop, so i'll probably have to write a custom version to stuff in the menu module. quite annoying.
Assuming you have a way to find out whether you are running as a plugin, it should be trivial to call the panel's quit function. edited on: 05-13 19:20
fixed in CVS, thanks
mass moving to general, so i can remove the "plugins" component, and i'm too lazy to sort each one into the proper plugin-related component on the new product. filter on "oisjdfa8uf4t8" to delete all this spam...