[Return to Library] [Contents] [Previous Chapter] [Next Section] [Next Chapter] [Index] [Help]


8    Windowing Environment


[Return to Library] [Contents] [Previous Chapter] [Next Section] [Next Chapter] [Index] [Help]


8.1    Overview

Digital UNIX Version 4.0 supports a full-featured implementation of the X Consortium's X Window System, Version 11, Release 6 (X11R6) up to and including public patch 12, as well as the complete Motif Toolkit from CDE/Motif Version 1.0. Aside from Digital extensions to the X server to add graphics support, and the addition of several Motif-based Digital X clients, the windowing code is essentially passed through untouched from the X and CDE consortiums.

The Digital UNIX Version 4.0 implementation of X11R6 and Motif makes use of both static and shared libraries, allowing client programs that link shared to make use of the latest library code without recompiling, as well as saving memory and disk space.

For more information on shared libraries, see The following sections briefly discuss the Common Desktop Environment (CDE), which is the default graphical user-interface now supported in Digital UNIX, and the X11R6 and Motif components of the Digital UNIX Version 4.0 windowing environment.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.2    Common Desktop Environment

The Common Desktop Environment is the new default user interface under Digital UNIX Version 4.0.

The Common Desktop Environment (CDE) provides an easy method of interacting with the Digital UNIX operating system. It is a jointly developed graphical user interface based on industry standards which include the X Consortium's X Window System and the Open Software Foundation's Motif user interface. CDE is an X/Open standard which provides a consistent look and feel as well as common APIs across multivendor platforms.

CDE presents a visual desktop that you can customize. Using the CDE interface, you can use the mouse or keyboard to navigate and interact with applications. The desktop itself offers a Front Panel, which is a graphical display at the bottom of the screen area that provides access to applications, printers, and frequently used objects, including online help.

In addition to user services, CDE provides everything needed to implement fully integrated applications. Because CDE is standards based, such integration work is transportable to other platforms that comply with this standard. For example, the help files and the means to access them apply across all compliant platforms. For more information, see the Common Desktop Environment: Programmer's Overview.

The CDE Front Panel displays the tools that you use to start applications, manage tasks in a desktop session, or change workspaces. Each tool is represented by an icon that indicates its purpose. A workspace is the screen itself, which includes the Front Panel. A tool on the Front Panel is provided to switch between different workspaces.

The tools available on the Front Panel are described in Table 8-1. For detailed information on the use of each tool, see the Common Desktop Environment: User's Guide.

Table 8-1: Front Panel Tools

Application Use of Application
Clock Displays the time of day in analog format. Clicking on this tool does not perform an action.
Calendar Displays the current month and day. Use this application to schedule appointments and To Do Items, set reminders, browse other calendars, and schedule group appointments. Dropping an appointment file on the Calendar tool adds the appointment to your calendar database.
File Manager Provides a view of directories (folders) and files. Dropping a directory on the File Manager tool opens a view of that directory.
Text Editor Opens a Text Editor window where you can create letters or notes. Dropping a file on the Text Editor icon opens that file in a Text Editor window.
Mailer Starts the desktop Mailer application. Use this application to send, receive, save, and forward mail messages. Dropping a file on this tool displays the contents of the file in a New Message window.
Lock Pauses a session indefinitely. Pausing a session locks the workstation display, but applications continue to run. To resume a session, enter your password.
Workspace Switches Changes workspaces. Use this switch to move to different work areas. There are four workspaces by default.
Busy Light Indicates that an action is being performed. For example, when you start an application, the light blinks. Once the call to the application is complete, the busy light stops blinking. Clicking on this icon does not produce an action.
Printer Displays the status of the default printer. Dropping a file on the Printer icon prints that file on the default printer.
Exit Starts the logout process for a session.
Style Manager Opens the Style Manager application. Use this application to change the characteristics of your environment.
Application Manager Starts the Application Manager, which is a container for applications and other tools available on your system.
Help Manager Displays the top level of available online help information. Dropping a master help volume file (*.sdl) onto the Help Manager opens a help viewer window and displays the contents of that volume.
Trash Can Opens the Trash Can application. Use this application to delete files. Dropping a file on the Trash Can tool moves the file to a discard directory.

For more information, see the CDE documentation set, which consists of:


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3    X Window System

The X11R6 windowing software consists of the following components:



[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.1    X Client Libraries

Digital UNIX Version 4.0 supports the complete set of X11R6 X client libraries:

For more information on individual X client libraries, see the guides X Window System and X Window System Toolkit.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.2    X Server

Through the extensive use of shared libraries, Digital UNIX Version 4.0 supports a single X11R6 X server image for all graphic options. The Digital UNIX Version 4.0 X server dynamically configures itself at init-time, loading only those server components required by a specific system configuration, and rarely requires any intervention by a system administrator.

For a list of the shared libraries that make up the X server, see Chapter 7.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.2.1    Multihead Graphic Support

Multihead graphic support is transparent in Digital UNIX Version 4.0, provided the proper option cards are installed and the additional graphic adapters are built into the kernel.

For more information on the graphic options supported in Digital UNIX Version 4.0, see the Systems and Options Catalog.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.2.2    X Server Extensions

Digital UNIX Version 4.0 supports the following X server extensions. Note that to conserve memory, the X server, by default, defers loading most server extensions until it receives a request from a client for that specific extension.

For more information on the X server, see the X Window System Environment and the X(1X) and the Xdec(1X) reference pages.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.3    Display Manager

Digital UNIX Version 4.0 supports the standard Xdm terminal manager software. The Xdm terminal manager starts up the X server locally and allows for network-transparent login prompting, so that users can log in to any system on their network that is supported by xdm as if the remote system's graphic console were in front of them. This functionality provides for the seamless integration of X terminals into the Digital UNIX Version 4.0 environment. For more information on using Xdm, see the System Administration guide and the xdm(1X) reference page.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.3.1    xmodmap Keymap Format

The keymaps supplied with Digital UNIX Version 4.0 use the xmodmap keymap format, the de facto industry standard. Unlike the format of the keymaps supplied in earlier versions of Digital UNIX, which was difficult to read and edit because it was written using hexadecimal numbers, the xmodmap format is written using symbolic key names and can be easily customized.

Also, the xmodmap format supports the ability to specify modifier keys (Compose, Alt, Shift, and so forth), which the old format did not support.

Now, instead of the X server itself loading the keymap when it starts or resets, xdm (the X Display Manager) causes the appropriate xmodmap-format keymap to be loaded by using the xmodmap command.

The xmodmap keymap format is compatible whether the X server is running the XKB extension or not. The xmodmap keymaps, however, are being shipped for backward compatibility reasons. Digital suggests using the newer XKB standard keymap format instead of the xmodmap keymap format.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.3.2    XDM-AUTHORIZATION-1

Whenever an X client application establishes a connection to the X server, it passes an authorization code, called a key, to the X server. If the X server recognizes this key, the connection is allowed. When the user's X session is started, xdm (the X Display Manager) writes one or more keys into the .Xauthority file in a user's home directory. The X Display Manager (xdm) also writes these keys into a file readable by the X server.

In previous releases of the Digital UNIX, the keys were in the MIT-MAGIC-COOKIE-1 format and were not encrypted.

Now, however, to improve security, Digital UNIX supports both the MIT-MAGIC-COOKIE-1 key format as well as the XDM-AUTHORIZATION-1 encrypted key format, which is the default.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.4    Font Server

Digital UNIX Version 4.0 supports a standard scalable font server that supplies a network of systems with access to fonts resident on any Digital UNIX system. The font server maintains a repository of fonts and responds to requests from other X servers on the network for fonts that they may not have locally. In addition to providing network-transparent access to fonts, the font server unloads the compute burden of font scaling from local X servers, since it scales fonts appropriately before supplying them to the requesting X server.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.4.1    Loadable Font Renderers

Before a font can be displayed by an X server, its glyphs must be converted from their on-disk formats into bitmaps. This conversion is done by font renderer code in the X server or in a font server which may be supplying fonts to the X server.

Digital UNIX Version 4.0 supports loadable font renderers, so that users who adhere to the X11R6 standard can write their own font renderer for their own set of fonts and install them on a Digital UNIX system. After the fonts and the font renderer are installed, the necessary entries for them are placed in the X server configuration file (/usr/var/X11/Xserver.conf), the font server configuration file (/usr/var/X11/fs/config), or in both configuration files. The new font renderer is then recognized the next time the X server or font server (whichever has the font renderer configured) is reset.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.3.5    X Clients

Digital UNIX Version 4.0 supports the entire suite of X clients that ships with X11R6, including appres, atobm, bdftopcf, bitmap, bmtoa, editres, fs, fsinfo, fslsfonts, fstobdf, getcons, ico, imake, listres, lndir, mkfontdir, oclock, optacon, pswrap, puff, puzzle, resize, showfont, showrgb, twm, uil, viewres, x11perf, x11perfcomp, xauth, xbiff, xcalc, xcd, xclipboard, xclock, xcmsdb, xcmstest, xconsole, xcutsel, xdm, xdpr, xdpyinfo, xedit, xemacs, xev, xeyes, xfd, xfontsel, xgc, xhost, xkbcomp, xkbprint, xkbdfltmap, xkill, xload, xlogo, xlsatoms, xlsclients, xlsfonts, xmag, xman, xmbind, xmh, xmkmf, xmodmap, xon, xpr, xprop, xrdb, xrefresh, xset, xsetroot, xsoundsentry, xstdcmap, xterm, xwd, xwininfo, and xwud.

For more information on individual X clients, see the appropriate reference page.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.4    Motif

Digital UNIX Version 4.0 supports the entire suite of CDE Motif Version 1.0 components, including the widget library (Xm), the resource manager (Mrm), the widget metalanguage (wml), the User Interface Language (UIL), the Motif window manager (mwm), the key binding utility (xmbind), and the Motif Demonstration programs (examples).

In Motif Version 1.2 the OSF has added support for ANSI C, Internationalization, Drag and Drop, and TearOff Menus. Unfortunately, however, much of this support required breaking binary compatibility with Motif Version 1.1.3.

To mitigate this problem, Digital UNIX Version 4.0 provides the Motif Version 1.1.3 libraries through its versioning functionality to allow applications that are linked against Motif 1.1.3 to continue to run. These libraries are available in an optional subset. For more information on versioning, see the Programmer's Guide and Chapter 7.

The following sections briefly discuss these Digital extensions to Motif:

For more information on Motif, see the OSF/Motif Programmer's Guide, DECwindows User's Guide, and the appropriate reference pages. For information on Motif support for internationalization, see Chapter 10.


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Section] [Next Chapter] [Index] [Help]


8.4.1    Digital Extended Widget Set

In addition to the Xm widget library, Digital UNIX Version 4.0 supports the Digital Extended Widget Set (DXm), which contains the following widgets:


[Return to Library] [Contents] [Previous Chapter] [Previous Section] [Next Chapter] [Index] [Help]


8.4.2    Digital X Clients

In addition to the entire suite of X clients that ships with X11R6, Digital UNIX Version 4.0 supports a variety of Digital X clients including accessx, dxbook, dxcalc, dxcalendar, dxcardfiler, dxclock, dxconsole, dxdiff, dxkbledpabel, dxkeyboard, dxkeycaps, dxmail, dxnotepad, dxpaint, dxpause, dxpresto, dxprint, dxsession, dxterm, and dxvdoc.

For more information on individual Digital X clients, see the DECwindows User's Guide and the appropriate reference pages.