Next: Workspaces, Previous: Window Frames, Up: Top
It is sometimes useful to have a logical display that is larger than the computer screen. This is most often implemented by displaying only a portion of the logical display at any time. Sawfish does this using “viewports”.
When viewports are enabled, the Sawfish logical display becomes infinitely large in the two directions “across” and “down” (to the maximum representable size of integers). Sawfish divides this logical display into a potentially infinite grid of cells. Each cell of the grid is the same size of the virtual display.
The current number of viewports across and down the virtual display. This is a cons cell
(across.down). Defaults to(1 . 1).
Change
viewport-dimensionsto have the value(width.height).
The user then tells Sawfish to move the physical display from cell to cell. On a cell change, windows in previous cells are removed, and windows in the current cell appear. Windows that span two or more cells will appear in each cell, appropriately displaced.
Note that cell indices start at zero in each dimension. Indices are never negative.
Move the viewport to see the cell right slots to the right and down slots down. Either argument may be zero or negative.
Move window to the cell at
(col,row). The relative position of the window within the cells is preserved.
Move window to the cell col-delta positions across and row-delta positions down from its current cell. The relative position of the window with its cells its preserved.
Move the viewport to a cell that shows window window. For a window that spans multiple cells, this function will pick the cell showing the window's top-left corner.
Move window from its existing viewport to the current viewport. The window's relative position in the existing viewport is preserved after the move.
Returns a cons cell
(col.row)of the viewport holding the top-left corner of window.
Returns true if window is completely outside the current viewport in any direction. The
window-outside-workspace-pfunction is an obsolete alias for the first function; the “workspace” term is now used for another concept (see Workspaces).
Returns a cons cell
(x.y)of the position of window in its containing viewport. The containing viewport may or may not be the current viewport.