Class Xwininfo


  • @ThreadSafe
    public final class Xwininfo
    extends java.lang.Object
    Utility to query X11 windows
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Xwininfo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static long queryPidFromId​(java.lang.String id)  
      static java.util.List<OSDesktopWindow> queryXWindows​(boolean visibleOnly)
      Gets windows on the operating system's GUI desktop.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NET_CLIENT_LIST_STACKING

        private static final java.lang.String[] NET_CLIENT_LIST_STACKING
      • XWININFO_ROOT_TREE

        private static final java.lang.String[] XWININFO_ROOT_TREE
      • XPROP_NET_WM_PID_ID

        private static final java.lang.String[] XPROP_NET_WM_PID_ID
    • Constructor Detail

      • Xwininfo

        private Xwininfo()
    • 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 OSDesktopWindow objects representing the desktop windows.
      • queryPidFromId

        private static long queryPidFromId​(java.lang.String id)