Package: gdk

Function gdk-screen-active-window

Lambda List

gdk-screen-active-window (screen)

Arguments

screen -- a gdk-screen object

Return Value

The currently active gdk-window object, or nil.

Details

Returns the currently active window of the screen.

On X11, this is done by inspecting the _NET_ACTIVE_WINDOW property on the root window, as described in the Extended Window Manager Hints. If there is no currently currently active window, or the window manager does not support the _NET_ACTIVE_WINDOW hint, this function returns nil.

On other platforms, this function may return nil, depending on whether it is implementable on that platform.

Warning

The gdk-screen-active-window function has been deprecated since version 3.22 and should not be used in newly written code.
 

See also

2021-12-13