Next: , Previous: Window Types, Up: Windows


8.3 Window Attributes

— Function: window-name window

Return the name associated with window.

— Function: window-full-name window

Return the full-name associated with window. This may or may not be the same as the normal name.

Sawfish provides functions to ensure that window names are unique.

— Function: uniquify-name proposal existing

Uniquify the string proposal against the list of strings existing. Uses the format string uniquify-name-format to generate unique names.

— Variable: uniquify-name-format

Format to create unique window names. Defaults to "%s [%d]".

— Function: uniquify-window-name window
— Command: uniquify-window-name window

Force window to have a unique title.

— Function: window-icon-name window

Return the icon name associated with window.

— Function: window-mapped-p window

Return t if the client window associated with object window is mapped. (Note that this doesn't necessarily mean that it is visible.)

— Function: window-transient-p window

Returns nil if window isn't marked as a transient window. Otherwise returns an integer, the xid of the parent window.

— Function: window-shaped-p window

Return t if window is shaped (possibly not rectangular).

— Function: window-id window

If window object window has a client window associated with, return an integer defining its xid, otherwise return nil.

— Function: root-window-id

Returns the numeric ID of the root window of the managed screen.

— Function: window-group-id window

If window is part of a group, return the X window id of the leader of that group. Otherwise return nil.

— Function: window-wants-input-p window

Return t when the client window associated with object window has asked for the input focus to be assigned to it when applicable (through the input field of its WM_HINTS property).

— Function: window-really-wants-input-p window

Return nil if the client window associated with object window should never be focused, t otherwise.

— Function: window-dimensions window

Returns a cons cell (width . height) defining the dimensions of the client window associated with object window.

— Function: window-position window

Returns a cons-cell (x . y) defining the position relative to the root window of window.

— Function: window-size-hints window

Return an alist defining the size-hints structure specified by the client window associated with window. Possible keys in the alist are min-height, max-height, min-width, max-width, height-inc, width-inc, min-aspect, max-aspect, base-height, base-width, user-position, program-position, user-size, program-size, window-gravity, border-size.

— Function: window-visibility window

Returns a symbol defining the current visibility of window. Possible returned symbols are fully-obscured, partially-obscured or unobscured.

— Function: window-urgent-p window

Return t if the “Urgency” hint of the window associated with window is set.