Basically I've created a function to re-organize the Windows on my screen (just flip them) and have bound this function to meny item. When I open the menu with the mouse (root menu) it works fine. When I use a key-comba to open the menu, it doesn't work.
For a simple test case I've done this: DestroyFunc EchoWindows AddToFunc EchoWindows + I All (CurrentPage, !CirculateHit) Echo "ID=$[w.id], X=$[w.x], Y=$[w.y]" AddToMenu RootMenu + "Echo Windows" EchoWindows Key F12 A N Popup RootMenu When I click on the root window to get my menu I get output like: [fvwm][Echo]: "ID=0x3600045, X=2655, Y=48" [fvwm][Echo]: "ID=0x4400054, X=1964, Y=95" [fvwm][Echo]: "ID=0x480000b, X=1969, Y=382" So my command is being run for each window. However, I use F12 to open up the menu I get the following: [fvwm][Echo]: "ID=0x3600045, X=2655, Y=48" [fvwm][Echo]: "ID=0x3600045, X=2655, Y=48" [fvwm][Echo]: "ID=0x3600045, X=2655, Y=48" So it runs the command for each window, but in the context of the window that current has focus. What I'm really doing is passing the X and Y coordinates off to a script with PipeRead that shuffles them around a little. Works perfectly when I open the menu with the mouse, but fails when I open the menu with a keyboard shortcut, or call the function directly with a keyboard shortcut. Any help appreciated. Thanks.
