\documentclass[]{article}
\usepackage{amsmath,graphicx,supertabular,hyperref,tabularx,ifthen}
\title{TIP \#231: Support for [wm attributes] on X11}
\date{November 06, 2004}
\author{Joe English}
\urlstyle{sf}
\setlength{\parskip}{1ex}
\setlength{\parindent}{0pt}
\def\tipversion$#1${\texttt{\$#1\$}}
\def\tiplangle#1{\ensuremath{<}}
\def\tiprangle#1{\ensuremath{>}}
\def\tipbar#1{\ensuremath{|}}
\def\tipmail#1#2{\(\langle\){\small\expandafter\url{#1@#2}}\(\rangle\)}
\ifx\pdfoutput\undefined
\newcommand{\tipimage}[2]{\typeout{Make sure you download #1.eps}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.eps}}{\includegraphics[width=0.8\textwidth]{#1.eps}}}
\newcommand{\tipxref}[1]{}
\newcommand{\tipxrefend}{}
\else
\newcommand{\tipimage}[2]{\typeout{Make sure you create #1.pdf}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.pdf}}{\includegraphics[width=0.8\textwidth]{#1.pdf}}}
\pdfcatalog{/PageMode /UseOutlines}
\newcommand{\tipxref}[1]{\pdfannotlink attr {/C [0.5 0.5 1.0] /Border [0 0 1]} goto name {#1}}
\newcommand{\tipxrefend}{\pdfendlink}
\fi
\newenvironment{tipabstract}{\begin{abstract}}{\end{abstract}}
\begin{document}\maketitle
\begin{center}\begin{tabularx}{\linewidth}{|r@{: }X|}\hline
\textbf{TIP \#231}&\textbf{Support for [wm attributes] on X11}\\\hline
Author&

Joe English \tipmail{jenglish}{flightlab.com}
\\
Created&Saturday, \(\text{6}^{\text{th}}\) November 2004\\
Type&Project\\
Tcl Version&\(8.5\)\\
State&Final\\
Vote&Done\\
Version&\tipversion$Revision: 1.7 $\\
Post History&\\
\hline\end{tabularx}\end{center}
\thispagestyle{empty}\pagestyle{empty}
\begin{tipabstract}

This TIP adds three UNIX/X11-specific attributes to the \textbf{wm attributes} command to take advantage of features newer Unix window manager control standards.
\end{tipabstract}
\tableofcontents\setcounter{page}{0}\clearpage\pagestyle{plain}

\section{Specification}

This TIP proposes to add support for the following window attributes under X11 in the \textbf{wm attributes} command:
\begin{itemize}
\item{}
\textbf{-fullscreen}

This attribute has the same meaning as the equivalent option for Windows (see \cite{tip223}) with one restriction (outlined below).
\item{}
\textbf{-topmost}

This attribute has the same meaning as the equivalent option for Windows (see \cite{tip95}) with one restriction (outlined below).
\item{}
\textbf{-zoomed}

This attribute requests that the window be maximized; it is the same as [\textbf{wm state} \textit{win} \textbf{zoomed}] on Windows, subject to the restriction outlined below.
\end{itemize}

\section{Restrictions}

Under X11, the \textbf{-fullscreen}, \textbf{-topmost}, and \textbf{-zoomed} attributes require cooperation from the window manager. If the window manager does not support these attributes, setting them will have no effect. In particular, they are not supported by older window managers like MWM and DTWM.

Under X11, the \textbf{wm attributes} command operates asynchronously: [\textbf{wm attributes} \textit{-attribute}] returns the current value of the attribute, which will not be the same as the value most recently set if the window manager has not yet processed the request or if it does not support the attribute.

\section{Reference Implementation}

See patch \#1062022 [\url{http://sf.net/support/tracker.php?aid=1062022}] which is based on the freedesktop.org Extended Window Manager Hints specification [\url{http://www.freedesktop.org/Standards/wm-spec}].

\section{Copyright}

This document has been placed in the public domain.

\section{Colophon}

\textit{TIP AutoGenerator --- written by Donal K. Fellows}
\begin{thebibliography}{TIP \#2}
\addcontentsline{toc}{section}{References}
\bibitem[TIP \#95]{tip95}
Jeff Hobbs,
\emph{Add [wm attributes] Command},
on-line at \url{http://purl.org/tcl/tip/95.html}
\bibitem[TIP \#223]{tip223}
Mo DeJong,
\emph{Full-Screen Toplevel Support for Tk},
on-line at \url{http://purl.org/tcl/tip/223.html}
\end{thebibliography}
\end{document}
