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


11.2 Dynamic Viewport

“Dynamic viewport” is enabled by setting viewport-boundary-mode to the symbol dynamic. It has two features.

Normally, the viewport cannot move beyond the limits set by viewport-dimensions, but this limitation is removed in dynamic viewport. The viewport is allowed to go as far as you wish.

In addition, workspace is automatically resized, both enlarged and shrinked, so that it contains the current viewport and all windows. (Precisely speaking, it takes the minimum such size.) The size is set when you move the viewport, and also at Sawfish startup. Each workspace has its own size independent of the others.

Even in dynamic viewport, the top-left cell is always (0, 0), and the cell indices are never negative.

The dynamic viewport is still an experimental feature, and its specification may change.

Customizable: viewport-minimum-dimensions

This is only useful if dynamic viewport is enabled. viewport-dimensions will never be set to less than viewport-minimum-dimensions, unless it is a change requested by the user, either by using the configuration interface or by calling set-number-of-viewports.

If setting viewport-minimum-dimensions by hand (not by the customization interface) be sure to call viewport-minimum-size-changed after doing so to ensure that the new minimum dimensions immediately go into effect.

If set-number-of-viewports is called to set the viewport dimensions viewport-minimum-dimensions will be set to the same value. Also, if (using the configuration interface) you set the viewport dimensions to less than viewport-minimum-dimensions then viewport-minimum-dimensions will be adjusted to match. This way those who are not using dynamic viewports do not need to worry about viewport-minimum-dimensions.

Under dynamic viewport, viewport-dimensions is the current size of the current workspace, and does not have the meaning as a user option.


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