random-place-window

Name

random-place-window -- Places WIN just as if being placed by fvwm2's RandomPlacement.

Synopsis

(random-place-window win #&optional no-move x-sugg y-sugg)

Description

Places win just as if being placed by fvwm2's RandomPlacement. This placement is not truly random; it is based on two state variables which are incremented for the x and y coordinates, and which wrap around once a window would be forced off the screen. The placement is fairly arbitrary, but always succeeds, and so avoids user interaction. #t is always returned. If no-move is #t, then just return the new position but do not move win. x-sugg and y-sugg are ignored.

Implementation Notes

Module: Built-in Primitive

Defined in src/placement.c at line 538 (CVS log)