i have 2 problems with focus remember function. first is, when i send a window to ohter page then currently focus is still on that window. is it possible to refocus any other (or recent used) window on the current page?
Here is my focus remember functions:
[code]DestroyFunc CurrentPageFocusFunc
AddToFunc CurrentPageFocusFunc
- I Current (!CurrentPage) Prev (CurrentPage) Focus NoWarp
DestroyFunc MarkWindowAsActiveFunc
AddToFunc MarkWindowAsActiveFunc
- “I” Current (!Iconified) All (CurrentPage, !Focused) State 2 False
- “I” Current (!Iconified) State 2 True
DestroyModuleConfig FvwmEvent: *
*FvwmEvent: Cmd Function
*FvwmEvent: new_page CurrentPageFocusFunc
*FvwmEvent: new_desk CurrentPageFocusFunc
*FvwmEvent: destroy_window CurrentPageFocusFunc
*FvwmEvent: focus_change MarkWindowAsActiveFunc
Module FvwmEvent[/code]
Another issue is about FvwmButtons. I added that button in StartFunction
+ I Module FvwmButtons MyPanel
and here is a scratch of MyPanel settings,styles:
[code]Style MyPanel NoTitle, Sticky, WindowListSkip, StaysOnBottom, NeverFocus, BorderWidth 1, HandleWidth 1, RoundedCorners
Style panel NoTitle, Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style panel StaysOnBottom, NoHandles, BorderWidth 0
Style FvwmIconMan NoTitle, Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style FvwmIconMan StaysOnBottom, NoHandles, BorderWidth 0
Style FvwmPager NoTitle, Sticky, WindowListSkip, CirculateSkipIcon, CirculateSkip
Style FvwmPager StaysOnBottom, NoHandles, BorderWidth 0
DestroyModuleConfig MyPanel: *
*MyPanel: Geometry 1360x40+20+3
*MyPanel: Rows 5
*MyPanel: Columns 102
*MyPanel: Colorset 20
*MyPanel: Font none
*MyPanel: (102x1)
*MyPanel: (1x3)
*MyPanel: (82x3, Swallow “FvwmIconMan”, “Module FvwmIconMan”)
*MyPanel: (8x3, Swallow (SwallowNew) “trayer” “Exec exec trayer
–SetDockType false
–widthtype pixel
–width 80
–heighttype pixel
–height 20
–alpha 10
–transparent true
–tint 0xffffff
–align left
–edge top”)
*MyPanel: (10x3, Swallow “FvwmPager”, “Module FvwmPager”)
*MyPanel: (1x3)
*MyPanel: (102x1)
[/code]
So the problem is that remember focus function doesn’t work well. Sometimes works but usually doesn’t. What is wrong?