A compositing manager, or compositor, is software that provides applications with an off-screen buffer for each window, then composites these window buffers into an image representing the screen and writes the result into the display memory. A compositing window manager is a window manager that is also a compositing manager. Compositing managers may perform additional processing on buffered windows, applying 2D and 3D animated effects such as blending, fading, scaling, rotation, duplication, bending and contortion, shuffling, blurring, redirecting applications, and translating windows into one of a number of displays and virtual desktops. Computer graphics technology allows for visual effects to be rendered in real time such as drop shadows, live previews, and complex animation. Since the screen is double buffered, it does not flicker during updates. The most commonly used compositing managers and compositing window managers include:
for Linux, BSD, Hurd and OpenSolaris using the X Window System: The 'X server' traditionally performs compositing from numerous networked sources at high speed but stylistic preferences may require compositing duties to be performed by a co-compositor with varying effects on visual qualities, capabilities and performance factors. Some examples are Compiz, KWin, Xfwm, Enlightenment, Muffin (compositing window manager for Cinnamon DE), and Mutter compositing window managers and the xcompmgr and picom compositors; for Linux and BSD using Wayland: the Weston, KWin, and Mutter compositing window managers; for Windows: the Desktop Window Manager; and for macOS: the Quartz Compositor.
Contrast with stacking window managers The window manager sends each window a message to repaint itself when needed. Windows may overlap. When a window in front is moved, it can reveal an area of a window behind that was previously concealed. Window managers are broadly categorised by their strategy for causing that newly revealed area to be displayed to the user. In the "stacking" strategy, the window manager tells the back window to repaint itself. In the "compositing" strategy, the window manager maintains an off-screen memory buffer containing the full appearance of each window, including the back window. With a stacking manager, the repainting process can become corrupted when a program that is slow, unresponsive or buggy does not respond to messages in a timely manner. A malicious program can cause the system to appear unstable by simply neglecting to repaint its window. Then, one or more of the following conditions may result:
a clipped window does not repaint uncovered regions, resulting in either blank spaces or a "trail" left behind from another window portions of windows (such as decorative drop shadows) are left behind and not properly painted over the mouse pointer is corrupted the entire screen freezes until the program either responds or is terminated With a compositing manager, if a window stops repainting itself when requested by the window manager, its last repaint will remain displayed and the window might be dimmed. Often, the title changes to reflect the status of the window as unresponsive. A program may prevent its window from being moved or unmapped, but generally will not cause repainting problems.
History The Commodore Amiga, released in 1985, was one of the first systems with a compositing windowing system. Applications could first request a region of memory outside the current display region for use as bitmap. The Amiga windowing system would then use a series of bit blits using the system's hardware blitter to build a composite of these applications' bitmaps - along with buttons and sliders - in display memory, without requiring these applications to redraw any of their bitmaps.
On March 24, 2001, Apple's Mac OS X 10.0 (Cheetah) became the first mainstream operating system to feature software-based 3D compositing and effects, provided by its Quartz component. With the release of Mac OS X 10.2 (Jaguar) and Quartz Extreme, the job of compositing could move to dedicated graphics hardware. In 2003 Sun Microsystems demonstrated an ambitious 3D graphics system called Project Looking Glass to layer on top of its Swing toolkit. It was first shown at the 2003 LinuxWorld Expo. Although Apple threatened to sue Sun for breach of intellectual-property rights, other window managers have implemented some of the functionality in Looking Glass. By 2006 development was discontinued by Sun, whose primary business was transitioning from graphically oriented Unix workstations to selling enterprise mainframes. Microsoft first presented the Desktop Window Manager in Project Longhorn to the 2003 Windows Hardware Engineering Conference, demonstrating wobbly windows. Severe delays in the Longhorn development process caused Microsoft not to debut its 3D-compositing window-manager until the release of Windows Vista in November 2006. Implementing compositing under the X Window System required some redesign, which took place incrementally. Metacity 2.8.4 was released in August 2004. However, the first widely publicized compositing window manager for X was Xfwm, released in January 2005. On 26 January 2005 Compiz was released, introducing fully accelerated 3D-compositing to the Linux platform. KDE's KWin also supports compositing.
Compositing and 3D effects in operating systems In compositing, 3D effects could be applied on windows to provide 3D desktop effects. Modern compositing window managers use 3D hardware acceleration. Compositing window manager software communicates with graphics hardware via programming interfaces such as OpenGL or Direct3D. The earliest widespread implementations using this technique were released for the Mac in Mac OS X 10.2, and for Linux in a Luminocity prototype. Currently, window managers using OpenGL include Compiz, KWin, and the Quartz Compositor, while Desktop Window Manager currently uses DirectX 9. OpenGL is still not fully supported in hardware, so performance of OpenGL-based compositing should continue to improve as hardware improves.
X11 and Wayland Stacking window managers running on the X Window System (X11) required a chroma keying or green screening extension. Compositing was introduced by way of the Composite Extension. Compositing managers use hardware acceleration through this extension, if available.
… excerpt ends here. Continue reading the full article.





