Next: , Previous: Cursors, Up: Top


8 Windows

One of the most important data types in sawfish is the window type. All managed client windows have a single window object associated with them.

— Function: windowp arg

Returns t if arg is a member of the window type, and has a client window associated with it.

— Function: managed-windows

Returns a list containing all managed window objects, in the order that they were adopted by the window manager (first to last).

— Function: get-window-by-id xid

Return a window object with id xid, or nil.

— Function: get-window-by-name name

Return a window object with name name, or nil.

— Function: get-window-by-name-re name

Return a window object with name matching regular expression name, or nil.

— Function: activate-window window

Do everything necessary to make window active, including raising it, giving it focus, etc. Certain steps may be skipped (e.g., giving focus) if the window doesn't allow that operation.

— Function: filter-windows pred

Return the list of windows (mapped or unmapped) that match the predicate function pred.

— Function: map-windows function

Call (function window) on all existing windows. Returns the value of the last function invocation. If any function returns nil, map-windows returns nil immediately.

— Function: window-class window

Return the class that window belongs to as a string, or nil if window has no associated class.

— Function: get-window-wm-protocols window

Return a list of symbols defining the X11 window manager protocols supported by client window.

— Function: window-supports-wm-protocol-p window atom

Return true if window includes atom in its WM_PROTOCOLS property.