Safekipedia

X Window System

Adventurer · ages 7–10Adapted from Wikipedia
A screenshot of the TWM desktop, an early window manager for the X Window System, showing a clock and a web browser window.

The X Window System, also called X11 or simply X, is a windowing system for bitmap displays. It is common on Unix-like operating systems, which are computer systems related to the Unix family. A windowing system is the part of a computer that lets people open, move, and work with many windows on the screen at once.

X began as part of Project Athena at the Massachusetts Institute of Technology (MIT) in 1984. The rules that programs use to talk to each other, called the X protocol, have been at version 11 since September 1987. That is why it is often called "X11."

The X.Org Foundation leads the X project. Its current reference version, called X.Org Server, is free and open-source software. This means anyone can use, study, and share it for free.

The software is released under the MIT License and similar licenses. These licenses give people a lot of freedom to use and change the software.

Purpose and abilities

X is a system that works on many kinds of computers and shows graphical screens. Each person using a networked terminal can work with the display using any type of input device. The standard version gives a toolkit and protocol stack for building graphical user interfaces on most Unix-like operating systems and on OpenVMS. It has also been ported to many other common operating systems. X provides the basic framework for building these screens. This includes drawing and moving windows on the display and using a mouse, keyboard, or touchscreen. X does not decide how the user interface looks. Individual programs decide that, so X-based screens can look very different from one another.

Unlike most earlier display systems, X was made to work over network connections. Its network transparency means a program running on one computer can show its screen on another computer on the network. The X server is usually the computer in front of the user. It provides the graphics and receives keyboard and mouse input. The X clients can run anywhere on the network and ask the server to draw graphics. X's network approach also supports 2D and 3D graphics, including classic OpenGL. X does not have built-in sound support, but some other projects fill this gap.

Software architecture

Simple example: the X server receives input from a local keyboard and mouse and displays to a screen. A web browser and a terminal emulator run on the user's workstation and a terminal emulator runs on a remote computer but is controlled and monitored from the user's machine.

X works like a client and server. An X server talks with different client programs. The server receives requests for windows and sends back input from a keyboard, mouse, or touchscreen. The server might be a program that shows its output in a window of another display system, a program that controls the video output of a PC, or a special piece of hardware. The names can seem backwards at first. X sees things from the point of view of the application. X gives display and input services to applications, so X is the server, and the applications that use those services are the clients.

The communication protocol between server and client works across networks. The client and server can run on the same computer or on different ones, even if they have different designs or operating systems. They can also talk safely over the Internet, because their connection can be sent through an encrypted network session. A client can even act as a server for other clients. This is called "X nesting". Open-source clients such as Xnest and Xephyr support this. It also means a user can run an X client program on a faraway computer and see its window and controls on their own computer.

User interfaces

GNOME graphical user interface

X decides how programs send graphics to the screen. It does not decide how buttons, menus, or window title bars look. Other programs, such as window managers, toolkits, and desktop environments, decide those details. Because of this, X does not have one single look, and several desktop environments are popular. A window manager controls where windows appear and how they look. Some look like Microsoft Windows or the Apple Macintosh, such as GNOME 2, KDE Plasma, and Xfce. Others, like the tiling window manager Ratpoison or wmii, work in very different ways. Some interfaces, such as Sugar or ChromeOS, do not use the desktop idea at all.

Many users run X with a desktop environment. This includes a window manager and other programs that share the same look. Popular desktop environments include GNOME, KDE Plasma, and Xfce. The standard desktop for UNIX 98 is the Common Desktop Environment (CDE). The freedesktop.org initiative helps different desktops work well together.

Implementations

The X.Org version is the standard version of X. Its license lets people share and change it freely, so many versions have been made. Some are free and open-source (FOSS), and some are sold with restrictions. Companies that sell Unix computers often take the standard version and change it to work with their own hardware. They often add their own private features.

Until 2004, XFree86 was the most common version of X on free Unix-like systems. Since 2004, the X.Org Server, which grew out of XFree86, has been the most popular. X also works inside other systems. On macOS, Apple's X11.app has been replaced by XQuartz. Windows does not come with X, but you can add versions made by other companies, such as Cygwin/X and Xming.

X terminals

Main article: X terminal

An X terminal is a simple computer that only runs an X server. Many people can use the same big computer through their own X terminals. This was the original goal of the MIT project. X terminals look for computers they can connect to on the local broadcast domain. They use the X Display Manager Control Protocol to do this. One of those computers should run an X display manager. Today, a PC or a modern thin client with an X server usually does the same job for the same or less money than a special X terminal.

Limitations and criticism

See also: Keystroke logging

Example of tunnelling an X11 application over SSH

Critics have pointed out many problems with X. The Unix-Haters Handbook (1994) has a whole chapter about them. X has few design rules, so programs often look very different and do not always work well together. The Inter-Client Communication Conventions Manual (ICCCM) is hard to use correctly. Later efforts like Motif and CDE did not fix these problems. Many programmers avoid the problem by building for one look and feel or one desktop. X also cannot run NeWS-style programs on the server, and it does not have Turing-complete scripting.

Some people with disabilities may find X hard to use. Problems can involve accessibility, right click, double click, middle click, mouse-over, and focus stealing. Some programs handle these better than others, and X11 has no accessibility standard. The Orca project adds support using AT-SPI and GNOME's ATK. Usually an X program cannot move from one server to another, though Emacs is one exception. Tools such as Virtual Network Computing (VNC), NX, and Xpra let a session be reached from different servers, similar to GNU Screen. x11vnc can also help.

Network traffic between an X server and remote programs is not encrypted by default. This means a packet sniffer could read what appears on the screen. The most common way to protect it is to use a Secure Shell (SSH) tunnel. Like other thin clients, X can be slowed by bandwidth limits when programs need to update large parts of the bitmap quickly. X's design also separates clients and servers, which adds extra work, mostly because of round-trip delay time and latency. Modern versions use Unix domain sockets and shared memory (via MIT-SHM) for faster connections on the same computer. Extensions like Mesa also help with local graphics. X also lacks sandboxing, so any program connected to the server can read keystrokes and screen content. Switching to Wayland is one solution. Poorly set up systems may also run X11 as root, which allows privilege escalation.

Competitors

People have tried to make other systems to replace X. Earlier ones include Sun's NeWS and NeXT's Display PostScript. Both were based on PostScript. They let programs create their own ways of drawing on the screen, which X could not do. Today, macOS and its phone version, iOS, use a windowing system called Quartz. When Apple Computer bought NeXT and used NeXTSTEP to build Mac OS X, it replaced Display PostScript with Quartz. One of Quartz's authors said that adding all the features Apple wanted to X11 would have changed it so much that it would hardly look like X11. It also would not work well with other servers.

The Wayland protocol is being developed by several X.Org developers as a replacement for X, along with Wayland compositors. It works directly with the GPU hardware through DRI. Wayland compositors can use XWayland, an X server that can be rootless. The project reached version 1.0 in 2012. Mir, from Canonical Ltd., had goals similar to Wayland. However, it has since become a Wayland compositor instead of an alternative display server. Other projects, such as DirectFB, try to avoid the extra work of X by working directly with the hardware. To get a similar result over a network, some tools send pictures of the screen, such as Virtual Network Computing (VNC). Others use the Remote Desktop Protocol (RDP), which began on Microsoft Windows. NX, Citrix XenApp, and Tarantella are other examples.

History

Some display systems came before X. Xerox made the Alto in 1973 and the Star in 1981. Apple made the Lisa and the Macintosh. In the Unix world, there was the Andrew Project and the Blit terminal, made by Rob Pike.

X got its name as a successor to an earlier system called W, which ran under the V operating system. X began in 1984 at MIT. Jim Gettys of Project Athena and Bob Scheifler worked on it together. Scheifler needed a display system that people could use easily. Project Athena needed a graphics system that could run on many kinds of computers. The team made a set of rules that let programs run on one computer and also use resources on another.

By 1986, other groups wanted X, so MIT chose to license it under the MIT License. X10R3 was the first version that many people used. Hewlett-Packard and DEC released products based on it. Developers then changed the system so it would work with more kinds of hardware. X11 was released on 15 September 1987.

X11R1 running on a Sun machine

In January 1988, the MIT X Consortium was formed so that X could be developed in a fair way. Keith Packard later joined its developers. In 1993, the X Consortium, Inc. took over and developed the Motif toolkit. In January 1997, the work passed to The Open Group. People disagreed about licensing and how X should grow. This led to the XFree86 project, which became the most popular version of X. In early 2004, the X.Org Foundation was formed. It was led by software developers and used open community work, which changed how X was managed.

Nomenclature

The official names for the system are X, X Window System, X Version 11, X Window System, Version 11, or X11. The name "X-Windows" is not officially approved. In 1993, X Consortium release manager Matt Landau said, "There is no such thing as 'X Windows' or 'X Window', despite the repeated misuse of the forms by the trade rags." Still, people have used the name informally since early in X's history. Some have used it on purpose to make a point, such as in the Unix-Haters Handbook.

The X Window System uses some words in different ways than people normally do, especially "display" and "screen." A "device" is a graphics device, such as a graphics card. A "monitor" is a physical screen, such as a CRT or a flat screen. A "screen" is an area where graphics can be drawn, either by software alone, as with VNC, or within a graphics device. A "display" is a group of screens, often on several monitors, that lets the mouse move anywhere among them. Linux-based workstations can usually switch between displays. The word "display" should not be confused with a Zaphod display, which is a rare setup. It lets several users share one computer, each with their own display, mouse, and keyboard.

See also: XFree86 § Release history, and X.Org Server § Releases

The X.Org website says that the group keeps developing and releasing parts of the X Window System. Each part is released on its own when it is ready, not as one big update. People can find downloads and details about changes on the X.Org website.

The website also says that no plan has been proposed for a single full release called X11R7.8.

VersionRelease dateMost important changes
Unsupported: X1June 1984First use of the name "X"; fundamental changes distinguishing the product from W.
Unsupported: X6January 1985First version licensed to a handful of outside companies.
Unsupported: X9September 1985Color. First release under MIT License.
Unsupported: X10November 1985IBM RT PC, AT (running DOS), and others.
Unsupported: X10R2January 1986
Unsupported: X10R3February 1986First freely redistributable X release. Earlier releases required a BSD source license to cover code changes to init/getty to support login. uwm made standard window manager.
Unsupported: X10R4December 1986Last version of X10.
Unsupported: X1115 September 1987First release of the current protocol.
Unsupported: X11R2February 1988First X Consortium release.
Unsupported: X11R325 October 1988XDM.
Unsupported: X11R422 December 1989XDMCP, twm (from the beginning known as Tom's window manager) brought in as standard window manager, application improvements, shape extension, new fonts.
Unsupported: X11R55 September 1991X386 1.2, PEX, Xcms (color management), font server, X video extension.
Unsupported: X11R616 May 1994ICCCM v2.0; Inter-Client Exchange; X Session Management; X Synchronization extension; X Image extension; XTEST extension; X Input; X Big Requests; XC-MISC; XFree86 changes.
Unsupported: X11R6.114 March 1996X Double Buffer extension; X keyboard extension; X Record extension.
Unsupported: X11R6.2
X11R6.3
23 December 1996Web functionality, LBX. Last X Consortium release. X11R6.2 is the tag for a subset of X11R6.3 (Broadway) with the only new features over R6.1 being XPrint and the Xlib implementation of vertical writing and user-defined character support. Broadway was the code name for running X applications on a web browser via a browser plugin and Low Bandwidth X.
Unsupported: X11R6.431 March 1998Xinerama.
Unsupported: X11R6.52000Internal X.org release; not made publicly available.
Unsupported: X11R6.5.120 August 2000
Unsupported: X11R6.64 April 2001Bug fixes, XFree86 changes.
Unsupported: X11R6.7.06 April 2004First X.Org Foundation release, incorporating XFree86 4.4rc2. Full end-user distribution. Removal of XIE, PEX and libxml2.
Unsupported: X11R6.8.08 September 2004Window translucency, XDamage, Distributed Multihead X, XFixes, Composite, XEvIE.
Unsupported: X11R6.8.117 September 2004Security fix in libxpm.
Unsupported: X11R6.8.210 February 2005Bug fixes, driver updates.
Unsupported: X11R6.9
X11R7.0
21 December 2005XServer 1.0.1, EXA, major source code refactoring. From the same source-code base, the modular autotooled version became 7.0 and the monolithic imake version was frozen at 6.9.
Unsupported: X11R7.122 May 2006XServer 1.1.0, EXA enhancements, KDrive integrated, AIGLX, OS and platform support enhancements.
Unsupported: X11R7.215 February 2007XServer 1.2.0, Removal of LBX and the built-in keyboard driver, X-ACE, XCB, autoconfig improvements, cleanups.
Unsupported: X11R7.36 September 2007XServer 1.4.0, Input hotplug, output hotplug (RandR 1.2), DTrace probes, PCI domain support.
Unsupported: X11R7.423 September 2008XServer 1.5.1, XACE, PCI-rework, EXA speed-ups, _X_EXPORT, GLX 1.4, faster startup and shutdown.
Unsupported: X11R7.526 October 2009XServer 1.7.1, Xi 2, XGE, E-EDID support, RandR 1.3, MPX, predictable pointer acceleration, DRI2 memory manager, SELinux security module, further removal of obsolete libraries and extensions.
Unsupported: X11R7.620 December 2010X Server 1.9.3, XCB requirement.
Latest version: X11R7.76 June 2012X Server 1.12.2; Sync extension 3.1: adds Fence object support; Xi 2.2 multitouch support; XFixes 5.0: Pointer Barriers.
Legend:
Unsupported
Supported
Latest version
Preview version
Future version

Quiz time!

4 questions about X Window System

Question 1 of 4

Where did the X Window System begin?

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on X Window System, available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.