Hi! Thank you very much. This "destroy_window" event could be the solution I was looking for.
I will try to solve my problem over the weekend. I like software that is flexible enough to satisfy all my wishes in my role as a user. I wish I had recognized the power of fvwm many years earlier. Michael Thomas Adam wrote: > 2010/8/10 Michael Großer <michael.gros...@gmx.de>: >> 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 > >