HPlogo Using the X Window System > Chapter 7 The Window Manager

Using the Window Manager with Multiple Screens

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

By default, the mwm manages one screen. Managing multiple screens can be specified in two ways:

  • Using resources.

  • Editing the startup command for mwm.

Using Resources to Manage Multiple Screens

The following resources configure the window manager to manage multiple screens:

  • To specify that mwm manage multiple screens, use the resource:

       Mwm*multiScreen:   True
    

    This tells mwm to try to manage all screens that the server manages.

  • To define the screen names, use the resource screenList. For example, the following resource names two screens zero and one.

       Mwm*screenList:  zero  one
    

Specifying Multiple Screens from the Command Line

You can use command-line options to start mwm so that it manages multiple screens.

  • The -display option specifies the display. It has the syntax:

       -display hostname:display.screen
    

  • The -multiscreen option causes mwm to manage all the screens on the specified display.

  • The -screens option specifies the screen names used to obtain screen-specific resources.

For example,

   mwm -display local:0.1 -multiscreen -screens zero one

causes mwm to manage all the screens on display 0. Screen 0 is named zero, and screen 1 is named one.

© 1995 Hewlett-Packard Development Company, L.P.