Re: FVWM: can't figure out how to refocus

From: Adam Tla/lka <atlka_at_pg.gda.pl>
Date: Fri, 19 Mar 1999 09:59:46 +0100 (MET)

On Tue, 16 Mar 1999, Stephen C. Koehler wrote:

>
> I'm having trouble figuring out how to use the Current/None/Next commands
> to implement a smart refocus to a window on the current page.

I have some propositions but working only with ClickToFocus and
FvwmButtons as Sticky window.
Try this:

Style "FvwmButtons" CirculateSkip

AddToFunc RaiseFocus "I" Raise
+ "I" Focus

AddToFunc RaiseFlip "I" Raise
+ "I" FlipFocus

AddToFunc TopToEnd "I" Prev (CurrentDesk CurrentPage !Iconic) FlipFocus
+ "I" Prev (CurrentDesk CurrentPage !Iconic) FlipFocus
+ "I" Prev (CurrentDesk CurrentPage !Iconic) Focus
+ "I" Prev (CurrentDesk CurrentPage !Iconic) FlipFocus

AddToFunc NextFlip "I" Next (CurrentDesk CurrentPage !Iconic) RaiseFlip

AddToFunc PrevFlip "I" Current (CurrentDesk CurrentPage !Iconic !FvwmButtons)\
TopToEnd
+ "I" Prev (CurrentDesk CurrentPage !Iconic) RaiseFlip

AddToFunc last_active "I" \
Prev (CurrentDesk CurrentPage CirculateHit FvwmButtons) FlipFocus
+ "I" Prev (CurrentDesk CurrentPage !Iconic) FlipFocus

AddToFunc scroll_rt "I" Scroll 100 0
+ "I" Function last_active


AddToFunc scroll_lt "I" Scroll -100 0
+ "I" Function last_active

AddToFunc scroll_dn "I" Scroll 0 100
+ "I" Function last_active

AddToFunc scroll_up "I" Scroll 0 -100
+ "I" Function last_active

Key Left A 1 scroll_lt
Key Right A 1 scroll_rt
Key Up A 1 scroll_up
Key Down A 1 scroll_dn

Key Escape A 1 WindowList Root c c \
"Prev (CurrentDesk CurrentPage !iconic) RaiseFlip"

Maybe this is a bit complicated but works quite good.
Order of windows on pages is saved and while iconifying active window
previous on the list is activated.
Switching pages by Alt-Cursors activates last active on that page and
while switching by mouse Alt-Tab does the same.

But generally speaking it will be nice to have additional function
in fvwm which places window on the top of window list like Focus but does
it by not changing order of other windows :

[a] <- top

[b]

[c]

[d] - this I want to be active and on top

[e]


then

[d] <- top

[b]

[c]

[e]

[a] - previous active goes to end of the list

It is not hard to do that. Just extract desired window from the list and
glue it after top and then switch top to this position and activate it.

I have "Style * NoIcons" and problem is that in my opinion Iconify
shouldn't switch focus to previous window on the list automatically.
I just want focus to stay on the same position and define:

AddToFunc Iconify-and-Prev "I" Iconify 1
+ "I" PrevFlip


Regards

 . . Adam Tla/lka mailto:atlka_at_pg.gda.pl ^v^ ^v^ ^v^
  ) System & Network Administration Group ~~~~~~
  - Computer Center, Technical University of Gdansk, Poland
     PGP public key: finger atlka_at_sunrise.pg.gda.pl

--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Mar 19 1999 - 03:10:24 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST