Package: gtk

Accessor gtk:window-is-active

Lambda List

gtk:window-is-active (object)

Syntax

(gtk:window-is-active object) => active

Arguments

object -- a gtk:window widget
active -- a boolean whether the window is part of the current active window

Details

The accessor for the is-active slot returns whether the toplevel is the current active window. That is, the toplevel window receiving keystrokes. The return value is true if the window is active toplevel itself, but also if it is, say, a gtk:plug widget embedded in the active toplevel. You might use this function if you wanted to draw a widget differently in an active window from a widget in an inactive window. See the gtk:window-has-toplevel-focus function.
 

See also

2026-06-04