Method
GdkScreenget_active_window
deprecated: 3.22 since: 2.10
Declaration [src]
GdkWindow*
gdk_screen_get_active_window (
GdkScreen* screen
)
Description [src]
Returns the screen’s currently active window.
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 NULL
.
On other platforms, this function may return NULL
, depending on whether
it is implementable on that platform.
The returned window should be unrefed using g_object_unref()
when
no longer needed.
Available since: 2.10
Deprecated since: 3.22
Please do not use it in newly written code.
Return value
Type: GdkWindow
The currently active window,
or NULL
.
The caller of the method takes ownership of the returned data, and is responsible for freeing it. |
The return value can be NULL . |