Re: FVWM: edge scroll wrap around

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Fri, 17 Jan 2003 00:46:58 +0000

On 16 Jan 2003 11:18:06 -0500, Louis LeBlanc wrote:
>
> On 01/15/03 05:52 PM, Mikhael Goikhman sat at the `puter and typed:
> > On 15 Jan 2003 11:34:46 -0500, Jesse L Farinacci wrote:
> > >
> > > like to have the ability to 'wrap around' when scrolling
> > > off the edge of a screen. her desired desktop is a 4x1
> > > (hor x ver), so if she were on desk 0 and scrolled off
> > > the left edge, it would wind up on desk 3 ...
> > >
> > > is this possible? if so, please enlighten me.. thanks
> > > in advance.
> >
> > Do you mean your desk has 4x1 pages? or you have 4 desks each contains
> > one page? I suppose you speak about the desk with 4 horizontal pages.
> >
> > Quoting the man page:
> >
> > EdgeScroll horizontal[p] vertical[p]
> >
> > [skipped]
> >
> > If the horizontal and vertical percentages are mulā•œ
> > tiplied by 1000 then scrolling wraps around at the
> > edge of the desktop. If
> >
> > EdgeScroll 100000 100000
> >
> > is used fvwm scrolls by whole pages, wrapping
> > around at the edge of the desktop.
> >
> > See also EdgeResistance.
>
> Very cool. I like it. I also noticed the Scroll command for
> keystroke wraparound. Unfortunately, the behavior is slightly
> different. It's more noticeable when you have a multidimensional
> desktop (like 3x2 instead of 4x1) but what happens is when you scroll
> off the right side of page 0,2, you wrap to page 1,0, rather than 0,0,
> like you do in the EdgeScroll behavior. The same happens if you
> scroll off the top of 0,0 - you wrap into 1,1 instead of 0,1.
>
> Is there any way to change the Scroll wraparound behavior so they are
> consistent? I much prefer the EdgeScroll behavior, but I don't really
> care for the need to grab the mouse. I did check the manpage, and the
> behavior is consistent with what the docs say, but I still like the
> EdgeScroll behavior better. It's more intuitive for me.

Don't tell anyone I suggested you such dirty trick, but if you do some
math you may see it is not that dirty. Suppose you use DesktopSize 3x4.
Then instead of "Scroll 100000 0" use "Scroll 0 400000" and instead of
"Scroll 0 100000" use "Scroll 300000 0". Works like you want.

Regards,
Mikhael.
--
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 Thu Jan 16 2003 - 18:48:23 GMT

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