// ###############################################################################
        // ### M E T H O D S
        // ###############################################################################

        #region Methods

        /// <summary> Get the window attributes of the underlaying X11 window. </summary>
        /// <param name="windowAttributes"> The structure containing the determined window attributes. <see cref="X11lib.XWindowAttributes"/> </param>
        /// <returns> True on success, or false on any error. <see cref="System.Boolean"/> </returns>
        public bool GetWindowAttributes(ref X11lib.XWindowAttributes windowAttributes)
        {
            if (X11lib.XGetWindowAttributes(_display, _window, ref windowAttributes) != (TInt)0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }