[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fvwm
Subject:    Re: FVWM: raising windows
From:       Werner LEMBERG <sx0005 () sx2 ! HRZ ! Uni-Dortmund ! DE>
Date:       1999-12-24 9:08:01
[Download RAW message or body]


> Looking at the code, and with my testing, it looks to me like it
> would only attempt to make the window visible if it was off screen.

Sounds reasonable -- maybe this could be added to the man page.

> I'm not familiar with the direction seeking stuff, so perhaps
> someone else can answer that question.  It would seem to me that
> picking the exact window to go to using a direction is only going to
> be reliable in controlled circumstances, like:
> 
> +---+---+
> |   |   |
> +---+---+
> |   |   |
> +---+---+
> 
> There are lots of other ways to pick the next window to use.

Using the `Lenience' option, it works sometimes unpredictable, but I
can finally access all windows in a more or less direct way.

For use with the keyboard I could imagine a pure geometric algorithm
(note that I have not checked the fvwm2 code):

  If you go down (i.e, a `Direction south'), sort the y-coordinates of
  the top sides of all windows which are visible and satisfy all
  conditions, and move along this list.  If two coordinates are equal,
  remove all but the leftmost from this list.

Left/Right movement could be handled similarly.  Of course, the
algorithm doesn't work with diagonal movement, but I assume that most
people use the arrow keys -- maybe this could be implemented as a new
function called `GeometricDirection' or something similar.


    Werner
--
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@fvwm.org.
To report problems, send mail to fvwm-owner@fvwm.org.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic