Re: FVWM: Focus and GoToPage

From: Tavis Ormandy <taviso_at_sdf.lonestar.org>
Date: Mon, 5 Jul 2004 11:15:20 +0100

On Sat, Jul 03, 2004 at 09:56:48AM +0700, Ruslan Kosolapov wrote:
> A most important thing in this metaphor is "focused window should be
> in attention locus, i.e. as far as possible in center of a viewport"

I'm not sure what you mean by "attention locus", but if you mean you
want to centre the viewport on a window how about this:

DestroyFunc CenterViewportOnWindow
AddToFunc CenterViewportOnWindow
+ I FlipFocus
+ I WarpToWindow 50 50
+ I PipeRead "echo Scroll $$((((-$[vp.width]/2)+$[pointer.x])))p $$(((-($[vp.height]/2)+$[pointer.y])))p

Then, for example, bind something to Next CenterViewportOnWindow

> I asked here about placement windows on whole multipaged desk, not on
> current page only. OK, now I can't do it by fvwm.

Well you can, the StartsOnPage/SkipMapping solution sounded okay to me?

> Question number two: I report a bug (in my opinion it is a bug) about
> wrong behavior of WarpToWindow function. Shortly: this function
> resets a viewport like GoToPage do it. Can I to do something with it?
> Is there a workaround? I can't find a simple solution (I plan to use
> CursorMove or something like it, but it is not a good solution).
>

I Think using CursorMove is a good solution, you could add some
CursorMove to the function above to get pretty close to this behaviour!

-- 
-------------------------------------
taviso_at_sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
--
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 Mon Jul 05 2004 - 05:18:03 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST