The startup of XMachTen is achieved via different means on MachTen and XTen. Each of these startup methods is described below. Once XMachTen is started, its behaviour is consistent in both environments.
When started, the X Server becomes another, albeit special, terminal window under wind. When in the foreground, the X Server window occupies the full Macintosh screen and becomes the user's X11 root window or desktop. All X11 clients directed at the server are displayed on the X11 desktop.
The X Server window can be completely hidden from view by selecting or creating another MachTen terminal window under wind. Other Macintosh applications may be brought into the foreground via MultiFinder to hide the X Server. While hidden, all X client applications displayed on the server continue to run but are obscured from view. All other MachTen, Finder, and Macintosh application services are similarly available while the X Server is running. When MachTen is made the foreground application, the X Server root window will reappear according to its stacking order among other MachTen terminal windows, if any. MachTen window stacking order is controlled via the MachTen "Window" menu item.
If no other MachTen terminal windows are started along with the X Server, an xterm console terminal should be among the X client applications launched to display console output.
The X Server is the only windowing system available with XTen. When XTen is in the foreground, the X Server window occupies the full Macintosh screen and becomes the user's X11 root window or desktop. All X11 clients directed at the server are displayed on the X11 desktop.
The X Server window can be completely hidden from view by bringing other Macintosh applications into the foreground. These applications may be selected via MultiFinder (if the "enable Macintosh Menu Bar" option is specified when XMachTen is launched). The X Server window can also be hidden using the XTen Manager or the "Hide XTen" item in the X Window Manager's Root Menu. This exposes the Macintosh application "Finder". While hidden, all X client applications displayed on the server continue to run but are obscured from view. All other Macintosh application services are available while the X Server is running. When XTen is again made the foreground application, the X Server root window will reappear.
The default keystrokes for the middle and right mouse buttons may be changed via the -mbm and -mbr server start up parameters. Mouse button keystrokes may also be combined with the Macintosh Option key via the -mo start up parameter. Use of these server options will cause all arrow keys to function normally.
For International keyboard layouts, the xmodmap program is used to re-map the U.S. character set for use in other countries by reading conversion files found in /usr/lib/X11/xinit. By way of example, to change the X server keyboard layout from the default U.S layout to the French layout, copy the Xmodmap-FR conversion file to a file called .Xmodmap in /usr/lib/X11/xinit before starting the X server for the first time. The .xinitrc script will invoke xmodmap upon server startup and use the .Xmodmap file to establish the desired keyboard layout.
Under the MachTen X Server, hot key operation (using the apple cloverleaf key) normally associated with a MachTen terminal window is disabled. The key functions as an X Meta (or when shifted, Alt) key when the X Server is the front window.
The user can manipulate a dynamic form of the access control list in the server using the xhost(n) program from the same machine as the server.
Unlike some window systems, X does not have any notion of window operation permissions or place any restrictions on what a client can do; if a program can connect to a display, it has full run of the screen. There is support for using authentication services on connection startup beyond the simple host name check, but it is not used in the standard distribution.
The MachTen X Server also supports a user-based access control mechanism known as MIT-MAGIC-COOKIE-1. The X Server may be started with options to communicate with an X display manager via XDMCP to implement this access mechanism.
The MachTen X Server distribution includes an executable font server. See xfs(n).
$HOME/.xinitrc Bourne shell script executed by xinit client which starts a number of other clients. If no .xinitrc file exists, the file /usr/lib/X11/xinit/xinitrc is executed. If this file does not exist, a single xterm client is started.
/usr/bin/X11/XMachTen The MachTen X Server binary executable image.
$HOME/.xserverrc A Bourne shell script executed by xinit to start the X server with user specified options. An example script is in /usr/lib/X11/xinit/xserverrc.
/usr/bin/X11/* X client binary images.
/usr/lib/X11/fonts/* Local font files.
/usr/lib/X11/xinit/Xmodmap-XX International keyboard mapping files. The two character suffix is the country code.
/usr/lib/X11/rgb.{dir,pag,txt} Color names to RGB mapping.
/etc/X0.hosts Initial access control list. X applications launched from hosts listed in this file, in addition to the local host, are allowed access to the X Server.
/tmp/.X11-unix/X0 Unix domain socket.
/usr/adm/X0msgs X Server Error log file. Start up failure and unexpected termination messages are logged to this file.
/usr/lib/X11/app-defaults Directory containing application specific class resource files. The default appearances of the olvwm and mwm window managers are taken from specifications in this directory.
$HOME/.Xdefaults User environment resource file. Resource specifications in this file are merged with and take precedence over resources specified in /usr/lib/X11/app-defaults.
X client screen saver X11 protocol requests are ignored by the X Server.
The X Server supports only the main screen in a multi-screen environment.