All Manuals > CAPI User Guide and Reference Manual > 19 Host Window System-specific issues

19.4 Motif-specific issues

19.4.1 Using Motif

The Motif backend is deprecated and the GTK+ backend is preferred.

This section describes how to use the Motif window system on supported platforms.

19.4.1.1 Using Motif on Linux, FreeBSD and x86/x64 Solaris

Use of Motif with LispWorks is deprecated on these platforms, but you can still use it.

LispWorks uses GTK+ as the default window system for CAPI and the LispWorks IDE on Linux, FreeBSD and x86/x64 Solaris.

To use Motif instead you need to load it explicitly, by:

(require "capi-motif")

Requiring the "capi-motif" module makes CAPI use Motif as its default library.

You can override the default library by specifying the appropriate CAPI screen (see 19.5 CAPI communication with host window system - libraries and the screen argument to display and convert-to-screen).

19.4.1.2 Using Motif on Macintosh

Use of Motif with LispWorks is deprecated on the Macintosh, but you can still use it.

LispWorks is supplied as two images. One uses Cocoa as the default window system for CAPI and the LispWorks IDE, the other uses GTK+ as its default window system. Only this latter image can use the alternative Motif window system.

To use Motif you need to load it into the GTK+ LispWorks image, by:

(require "capi-motif")

Requiring the "capi-motif" module makes CAPI use Motif as its default library.

You can override the default library by specifying the appropriate CAPI screen (see 19.5 CAPI communication with host window system - libraries and the screen argument to display and convert-to-screen).

Note: you cannot load Motif into the Cocoa image.

Note: the GTK+ LispWorks image is installed on Macintosh when you select the X11 GUI option at install time. See the Release Notes and Installation Guide for further information on installing this option.

19.4.2 The break gesture

If a CAPI/Motif window is busy and unresponsive you can use the break gesture Meta+Ctrl+C to regain control.

On Motif you can use the function set-interactive-break-gestures both to find and to set the keys that are used interactively as break gestures. When the system detects a break gesture it tries to interrupt any running process, to allow the user to deal with runaway processes.

19.4.3 Matching resources for X11/Motif

On Motif, you can configure the LispWorks IDE and your application to use resources similarly to GTK+ (see 19.3.2 Matching resources for GTK+).

19.4.3.1 Resources on X11/Motif

widget-name is used as described for GTK+ in 19.3.2.1 Resources on GTK+, except that the default widget-name for a top level interface does include the prepended application-class.

The file app-defaults/Lispworks, supplied in the LispWorks library for relevant platforms, contains the application fallback resources for LispWorks 8.0 and illustrates resources you may wish to change.

The file app-defaults/GcMonitor contains the application fallback resources for the Lisp Monitor window.

The files app-defaults/*-classic contain the fallback resources that were supplied with LispWorks 4.4.

For further information about X resources, consult documentation for the X Window system.

19.4.3.2 Resources for CAPI/Motif applications

To construct custom X resources for your CAPI/Motif application, consult app-defaults/Lispworks which illustrates resources you may wish to change in your application.


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:32:40