GtkWindow::is_active

bool is_active();

Returns true if the input focus is within the window. If input focus is within the window, it will receive keystrokes from the user.

See also: has_toplevel_focus() is-active