FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 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-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.

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