2010/8/10 Michael Großer <[email protected]>: > The problem: If I switch to another viewport and then > back to the prior one, then sometimes no window has the > focus. If I give a window a focus and close it, then > again no window has the focus. > > How can I solve this problem?
You can't. > My idea is that I use an event to use the "Next" command > to give some window the focus: > - If I switch the viewport, I could call such a function > - If a window closes, I could call such a function. So you want something like this then: DestroyModuleConfig a:* *a: new_page SomeFunc *a: new_desk SomeFunc AddToFunc StartFunction I Module FvwnEvent a DestroyFunc SomeFunc AddToFunc SomeFunc + I None (Focused) Next (AcceptsFocus, !Focused, CurrentPage) FlipFocus > Problem: > - Doing something if I switch the viewport, could be possible. > - But, doing something if a window closes, is difficult. No it isn't -- see FvwmEvent, with the "destroy_window" condition. -- Thomas Adam
