Hello, I just get the next idea: be able to open a launcher with arguments by middle clicking it. It should read the clipboard for the arguments. Simple example: I select somewhere a URL and middle click the launcher which is configured for a browser. It will directly show the page. Hope you will enjoy the idea, not sure if it is good :) mmassonnet
Sure. I think the relevant part of the code currently says something like this: if (ev->button == 2) { /* do something useful with middle click */ } If someone want to give it a shot, please be my guest.
Created attachment 533 middle click on icon button This patch already works for me. Affected is only the icon button and not the items in the menu :/ I will try to head on them next. Middle clicking (button 2) on a launcher opens the application + the primary clipboard as parameters.
Created attachment 566 middle click launcher and exec with clipboard as argument OK, now I did it! I can double-click text (URL, paths, search string or any good argument for a command) and middle click on the button as in the menu. It works perfect for me. I hope you will accept my hack ^_^
Very nice! Thanks a lot. I committed something, based on your patches, in revision 21875. I made a few changes to make a bit better use of available functions and data, so I wouldn't need the 'use_clip' flag.