| 1 |
# Remember active window on each desktop |
| 2 |
# Functions for Style * SloppyFocus |
| 3 |
#---------------------------------------- |
| 4 |
|
| 5 |
DestroyFunc Window-RememberFocused |
| 6 |
AddToFunc Window-RememberFocused |
| 7 |
+ I None (CurrentPage, AcceptsFocus) Break |
| 8 |
+ I Current (!Iconified, !Sticky) All (CurrentPage) WindowStyle !State 2 |
| 9 |
+ I Current (!Iconified, !Sticky) WindowStyle State 2 |
| 10 |
|
| 11 |
DestroyFunc Window-FocusRemembered |
| 12 |
AddToFunc Window-FocusRemembered |
| 13 |
+ I All (FvwmMiniConsoleNeedsUniqueName, Visible) Break |
| 14 |
+ I All (QuakeConsoleNeedsUniqueName, Visible) Break |
| 15 |
+ I None (CurrentPage, AcceptsFocus) Break |
| 16 |
+ I Current (Focused, Visible, Sticky) Break |
| 17 |
+ I Next (CurrentPage, HasPointer) Focus |
| 18 |
+ I TestRc (Match) Break |
| 19 |
+ I Next (CurrentPage, State 2) Focus |
| 20 |
+ I None (CurrentPage, Focused) Prev (CurrentPage, !Iconified) Focus |
| 21 |
|
| 22 |
|
| 23 |
DestroyModuleConfig FvwmEvent-Window-Remember: * |
| 24 |
*FvwmEvent-Window-Remember: new_page Window-FocusRemembered |
| 25 |
*FvwmEvent-Window-Remember: focus_change Window-RememberFocused |
| 26 |
*FvwmEvent-Window-Remember: destroy_window Window-FocusRemembered |
| 27 |
|
| 28 |
Module FvwmEvent FvwmEvent-Window-Remember |
| 29 |
|
| 30 |
# vim:ft=fvwm |