get_surface_from_root


Description:

[ Version ( deprecated = true , deprecated_since = "3.36" ) ]
public static Surface get_surface_from_root (Screen screen)

Warning: get_surface_from_root is deprecated since 3.36.

This function queries the _XROOTPMAP_ID property from the root window associated with screen to determine the current root window background pixmap and returns a copy of it.

If the _XROOTPMAP_ID is not set, then a black surface is returned.

Parameters:

screen

a Screen

Returns:

a XlibSurface if successful or null