Package oshi.driver.unix
Class Xwininfo
- java.lang.Object
-
- oshi.driver.unix.Xwininfo
-
@ThreadSafe public final class Xwininfo extends java.lang.Object
Utility to query X11 windows
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]NET_CLIENT_LIST_STACKINGprivate static java.lang.String[]XPROP_NET_WM_PID_IDprivate static java.lang.String[]XWININFO_ROOT_TREE
-
Constructor Summary
Constructors Modifier Constructor Description privateXwininfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static longqueryPidFromId(java.lang.String id)static java.util.List<OSDesktopWindow>queryXWindows(boolean visibleOnly)Gets windows on the operating system's GUI desktop.
-
-
-
Method Detail
-
queryXWindows
public static java.util.List<OSDesktopWindow> queryXWindows(boolean visibleOnly)
Gets windows on the operating system's GUI desktop.- Parameters:
visibleOnly- Whether to restrict the list to only windows visible to the user.- Returns:
- A list of
OSDesktopWindowobjects representing the desktop windows.
-
queryPidFromId
private static long queryPidFromId(java.lang.String id)
-
-