Add an "Add/Remove to panel launchers" item in the menu
Code cleanup included
Added 'Add/Remove from panel launchers' to window list's menu
Yet more code cleanup
@dalcde I can't move panel launchers around anymore with your code.
Edit. I had "panel launchers draggable" turned off in cinnamon settings. Your code works fine.
Thanks for indenting the file correctly, but does that really belong in a pull request about panel launchers?
I'm just afraid that if I do it in a separate pull request, the merges might conflict. It is not much work, so if this doesn't get merged, I can re-do it in a separate pull request.
The indent/whitespace fixes are on other lines of the file, meaning they should merge correctly if in a separate pull request. However, I don't know how clem thinks about this.
A bit overkill. That feature belongs to the panel launchers themselves, to drag and drop and to the menu.
Closing the pull request.
I disagree clef i think its useful and Unity/KDE both enable you to add a launcher from an open window.