FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version

foreground-window

Arguments:

This function returns the currently selected top-level window in this Lisp if this Lisp is the currently selected application, and otherwise returns nil. Returns the window even if it is in another thread of the same Lisp.

This function may be useful for determining whether this Lisp (either a development environment or standalone application) is the application that is currently selected by the user, by simply checking whether the return value is true.

Note that the expression

(selected-window (screen *system*))

differs in that it will return the most recently selected top-level even when this Lisp is not the currently selected application. (See selected-window.)

See also set-foreground-window.

GTK Note

foreground-window simply calls selected-window on the screen.


Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version