Hi Everyone,
Im trying to write something that would cycle through all the windows on the current page. Sort of like built-in WindowList, but without the menu, and that would cycle through each window on the current page before returning to the first window. I’m using the conditional ‘Next’ and ‘Prev’ commands. As FVWM manual says, all the windows are kept in a ‘ring-like’ structure, and searching starting from the current window will cycle through all the windows with some specified condition. So doing ‘Next (CurrentPage) FlipFocus’ should be enough to cycle through all the pages on current desk. Here’s the full code:
DestroyFunc NextWindow
AddToFunc NextWindow
+ I Next (CurrentPage) FlipFocus
DestroyFunc PrevWindow
AddToFunc PrevWindow
+ I Prev (CurrentPage) FlipFocus
Key M A M NextWindow
Key N A M PrevWindow
However, as written this does not work. If there are two windows on a page, only one shortcut works (Alt-N one, with ‘Prev’ command), the other doesn’t do anything. If there are more windows, it depends on which of them were focused before this is executed.
Sometimes only one window is selected, sometimes it cycles between two windows and leaves others out. Could anyone point to me why the above doesn’t work and which part of documentation I’m reading incorrectly?
Thank you.