HPlogo Using the X Window System > Chapter 7 The Window Manager

Controlling Window Size and Placement

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

The following table lists window manager resources enabling you to refine your control over the size and placement of windows.

Table 7-7 Refining Your Control with Window Manager Resources

To control this...Use this resource...The default is...
Initial placement of new windows on the screen.interactivePlacementFalse
The ability to enlarge windows beyond the size specified in maximumClientSize.limitResizeFalse
The maximum size of a client window set by user or client. maximumMaximumSize2×screen
The sensitivity of dragging operations.moveThreshold4 pixels
Exact positioning of window and window frame.positionIsFrameTrue
Clipping of new windows by screen edges.positionOnScreenTrue
The width of the resize border of the window frame.resizeBorderWidth10 pixels
Displaying the resize cursors when the pointer is in the resize border. resizeCursorsTrue
The maximum size of a maximized client.maximumClientSizescreen size

 

The interactivePlacement resource has the following values:

True

The pointer changes shape (to an upper left corner bracket) before a new window displays, so you can choose a position for the window.

False

The pointer doesn't change shape. A new window displays according to the placement values specified in the X configuration files.

The limitResize resource has the following values:

True

A window cannot be resized to greater than the maximum size specified by the maximumClientSize resource or the WM_NORMAL_HINTS window property.

False

A window can be resized to any size.

The value of the maximumMaximumSize resource is the width×height of the screen being used. The dimensions are given in pixels. For example, for an SRX display, maximumMaximumSize would have a value of 1280×1024.

The value of the moveThreshold resource is the number of pixels that the pointer must be moved with a button pressed before a move operation is initiated. You can use this resource to prevent window or icon movement when you unintentionally move the pointer during a click or double-click.

The positionIsFrame resource has the following values:

True

The position information (from WM_NORMAL_HINTS and configuration files) refers to the position of the window frame.

False

The position information refers to the position of the window itself.

The positionOnScreen resource has the following values:

True

If possible, a window is placed so that it is not clipped. If not possible, a window is placed so that at least the upper left corner of the window is on the screen.

False

A window is placed at the requested position even if it is totally off the screen.

The value of the resizeBorderWidth resource is the width of the resize border, the outermost portion of the window frame. The width is measured in pixels.

The resizeCursors resource has the following values:

True

The appropriate resize cursor displays when the pointer enters a resize border area of the window frame.

False

The resize cursors are not displayed.

The value of the maximumClientSize resource is the width×height (in pixels) of the maximum size of a maximized client. If this resource isn't specified, the maximum size is taken from the WM_NORMAL_HINTS window property, or the default size (the size of the screen) is used.

For example, you might decide that xload clients should be maximized to no more than an eighth of the size of your 1024×768 display.

   Mwm*XLoad.maximumClientSize:        128×96
© 1995 Hewlett-Packard Development Company, L.P.