smart-place-window

Name

smart-place-window -- Places WIN using fvwm2's SmartPlacement algorithm.

Synopsis

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

Description

Places win using fvwm2's SmartPlacement algorithm. The placement is just as if SmartPlacementIsReallySmart were not in effect. That is, it tries to place the window so that it does not overlap any other. If it fails to do so, it returns #f; otherwise it returns #t. If no-move is #t, then the position is returned instead of actually moving the window to that position. This can be useful for finding a new location for an existing window. x-sugg and y-sugg are suggested coordinates that clever-place-window may try to use as a preferred location for win.

Implementation Notes

Module: Built-in Primitive

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