Extracted from Pike v8.0 release 240 as of 2016-05-30.
   

Method GTK2.Window()->has_toplevel_focus()


Method has_toplevel_focus

int has_toplevel_focus()

Description

Returns whether the input focus is within this window. For real toplevel windows, this is identical to is_active(), but for embedded windows, like W(Plug), the results will differ.