On Fri, 30 Mar 2012 at 17:52:29 +0100, Iain Patterson wrote: > These patches implement three variations of what I consider to be > a fairly useful feature of Windows 7 (of all things), namely the > ability to middle click on a taskbar entry and have a new instance > of that application be launched. So for example if you middle click > on Explorer a new Explorer window pops up. > > I've split the patches up into separate methods of accomplishing > the same thing in case one or more are seen as undesirable. > > Patch 1 defines a hotkey, WindowRelaunchKey, which when pushed > will launch a new instance of the focused window. > > Patch 2 extends the functionality to the window menu, adding a new > Launch entry to do the same thing. > > Patch 3 defines two ways to relaunch applications from their > appicon, either by selecting the new Launch menu entry or with a > Microsoft-style middle click. > > In all cases the target window's WM_COMMAND property is queried > and used to build an argv list to launch a new instance of the > application. If for some reason WM_COMMAND is not set it won't > work. My first attempt used GetCommandForWindow() and > ExecuteShellCommand() but that didn't handle complex WM_COMMAND > arrays which aren't properly escaped, hence the addition of a > slightly different exec()ing function.
I applied all patches (including the fourth). But can you also add some words about this in the NEWS file? I worry about this new functionality never being used simply because people don't know about it. Ideally, one should update a documentation like http://windowmaker.org/guide_toc.php -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.