containing-aligned-viewport

Name

containing-aligned-viewport -- Compute the viewport-position of the viewport that contains POS.

Synopsis

(containing-aligned-viewport pos)

Description

Compute the viewport-position of the viewport that contains POS. POS is a list of x and y virtual coordinates in that order. The viewport coordinates returned will be in the same format and will be a integral multiples of the desk size. If POS is not contained in any valid viewport, for instance if it includes coordinates greater than zero or greater than the desk size times the display size, the nearest viewport will be returned instead.

Implementation Notes

Module: (app scwm virtual)

Defined in scheme/virtual.scm at line 34 (CVS log)