2.304 .screen

At a display resource, the screen number can be queried and set with this attribute. Setting .screen moves all windows using the affected display resource to the specified screen.

With the attribute of the setup object, the screen number of the default screen can be queried in multiscreen systems.

Definition

  • Data type

    integer

  • Access

    get (setup)

    get, set (display)

  • changed event

    no

display

The value range of the screen attribute goes from -32767 to 32767, but only values greater than zero are valid screen numbers. Invalid screen numbers will lead to windows being displayed on the default screen if they use the display resource in question.

The default value for .screen is -1.

Remarks

Only the IDM for Motif provides multiscreen support.

Valid screen numbers can be determined with the program xdpyinfo or the attribute .screen[integer] of the setup object. The screen numbers returned by the screen attribute correspond to those obtained with the program xdpyinfo.

An example dialog can be found at the display resource.

See also

Attribute .real_screen.

Chapter “Multiscreen support under Motif” in manual “Programming Techniques”.