Next: , Previous: , Up: Top   [Contents][Index]


11 Viewports

Sawfish can have a virtual desktop which is larger than the computer’s screen size. This is done through the use of “viewport”.

Viewport can be thought of as a screen-sized hole through which you can view a portion of the virtual desktop. The entire virtual desktop consists of the grid of “cells” whose size is that of the physical screen. Viewport moves around, and sits on a cell.

In Sawfish, the word “viewport” is sometimes used to mean the entire larger-than-normal desktop. This is natural, but a confusion and not technically correct. When focused to enlargement, “large desktop” is the correct nomenclature, but simply calling it the “workspace” or the “virtual desktop” are correct too.

The word “viewport” is also used to mean the cell on which the viewport is set, like “Go to the next viewport.”

Variable: viewport-dimensions

The dimension of the virtual destkop. This is a cons cell (columns . rows). Defaults to (1 . 1). The number of viewport cells in the virtual desktop is columns times rows.

If viewport-boundary-mode is dynamic (see Dynamic Viewport) then this variable is set by Sawfish to the current size of the current workspace and should not be set by the user.

Function: set-number-of-viewports width height

Change viewport-dimensions to have the value (width . height). If viewport-boundary-mode is dynamic then this sets the minimum dimensions of the virtual workspace (see Dynamic Viewport) rather than setting the dimensions directly.


Next: , Previous: , Up: Top   [Contents][Index]