Root window

Root window

In the X Window System, every window is contained within another window, called its parent. This makes the windows to form a hierarchy. The root window is the root of this hierarchy. It is as large as the screen, and all other windows are either children or descendant of it.

Since every window covers the part of its parent it is staying on, all other windows appear to be above the root window. As a result, the root window is visible as the part of the screen that is behind all other windows. In other words, the root window forms the background of the screen. An image can be used as the wallpaper of the screen by setting it as the background image of the root window. This can be done for example using the xsetroot or the xv programs.

The children of the root window are called "top-level windows". These windows are usually drawn with a decorative frame and a title bar (which are actually added by the window manager). The top-level windows are, informally, the regular windows in the terminology of most GUIs. The windows that are not top-level are used for buttons, textboxes, etc.

The properties of the root window are sometimes used as a form of inter-client communication means. For example, the cut buffers are properties of the root window that are used for copying selected text from a window to another. The X resources are also stored, during execution, in a property of the root window.

Virtual root window

The swm window manager introduced the virtual root window. From the point of view of the X protocol, this is a regular window. However, X window managers using the virtual root window reparent all windows to it instead to the real root window. Virtual root windows are mainly used by virtual window managers, for example for realizing a number of virtual desktops the user can switch between.

Other clients (beside the window manager) may need to use the virtual root window. The identifier of this window can be found in a window property named __SWM_VROOT in a direct child of the real root window. Technically, many programs use the macros for finding the root windows as redefined by an include file named vroot.h.

The freedesktop window manager specification requires a property named _NET_VIRTUAL_ROOTS of the real root window to contain a list of the windows that are acting as virtual root windows; the virtual root window that is currently active can be found in the property _NET_CURRENT_DESKTOP of the real root window.

The virtual root window is used by the window managers swm, tvtwm, amiwm, and enlightenment. Other systems such as KDE use a virtual background window (which contains the icons, for example) but do not reparent the other windows to this one. The virtual root window is also used by XScreenSaver: when the screensaver is activated, this program creates a virtual root window, places it at the top of all other windows, and calls one of its hacks (modules), which finds the virtual root window and draws in it.

Utilities that use the root window

http://www.goof.com/pcg/marc/root-tail.html

See also

* X Window System
* X Window System protocols and architecture

External links

* [http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html Extended Window Manager Hints] from freedesktop.org
* [http://www.koders.com/c/fid3A542CD442140144DE353023A75F039DAB50A3EA.aspx?s=tree toon_root.c] , a source file of XPenguins that contains information about virtual root/desktop windows for various window managers


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Window manager — A window manager is computer software that controls the placement and appearance of windows within a windowing system in a graphical user interface. [ [http://dictionary.reference.com/browse/window%20manager window manager Definitions from… …   Wikipedia

  • Root.cern — ROOT ROOT Logo Basisdaten Aktuelle Version: 5.22/00  (18.12.2008) root.cern.ch …   Deutsch Wikipedia

  • Root Nameserver — globale Anycast Instanz des K Root Servers im AMS IX Root Nameserver, oft auch nur Root Server genannt, publizieren verlässlich die Root Zone des Domain Name Systems (DNS) im Internet. Diese Datei besteht aus ca. 2.500 Einträgen und ist die… …   Deutsch Wikipedia

  • ROOT — Infobox Software name = ROOT caption = Example ROOT plot showing regions of interest in a 2D distribution developer = CERN latest release version = 5.20/00 latest release date = June 25th, 2008 operating system = Cross platform genre = Data… …   Wikipedia

  • Root-Account — Der Root Account oder Superuser ist das Benutzerkonto, das bei der Installation eines Betriebssystems angelegt werden muss und mit größtmöglichen Zugriffsrechten ausgestattet ist. Inhaltsverzeichnis 1 Unix 1.1 Mac OS X 1.2 Ubuntu 1.3 toor …   Deutsch Wikipedia

  • Root-Kennung — Der Root Account oder Superuser ist das Benutzerkonto, das bei der Installation eines Betriebssystems angelegt werden muss und mit größtmöglichen Zugriffsrechten ausgestattet ist. Inhaltsverzeichnis 1 Unix 1.1 Mac OS X 1.2 Ubuntu 1.3 toor …   Deutsch Wikipedia

  • Root-Zugriff — Der Root Account oder Superuser ist das Benutzerkonto, das bei der Installation eines Betriebssystems angelegt werden muss und mit größtmöglichen Zugriffsrechten ausgestattet ist. Inhaltsverzeichnis 1 Unix 1.1 Mac OS X 1.2 Ubuntu 1.3 toor …   Deutsch Wikipedia

  • Root Account — Der Root Account oder Superuser ist das Benutzerkonto, das bei der Installation eines Betriebssystems angelegt werden muss und mit größtmöglichen Zugriffsrechten ausgestattet ist. Inhaltsverzeichnis 1 Unix 1.1 Mac OS X 1.2 Ubuntu 1.3 toor …   Deutsch Wikipedia

  • .root — Jeder Name einer Domain im Internet besteht aus einer Folge von durch Punkte getrennten Zeichen. Die Bezeichnung Top Level Domain (vom englischen top level domain, übersetzt Bereich oberster Ebene; Abkürzung TLD) bezeichnet dabei den letzten… …   Deutsch Wikipedia

  • Root-Domain — Jeder Name einer Domain im Internet besteht aus einer Folge von durch Punkte getrennten Zeichen. Die Bezeichnung Top Level Domain (vom englischen top level domain, übersetzt Bereich oberster Ebene; Abkürzung TLD) bezeichnet dabei den letzten… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”