Re: RFC: frame size hints



On Tue, 2003-12-09 at 19:10, Rob Adams wrote:
> Definitely should be "calculate".  Window managers implementing
> approximations should document this is their respective COMPLIANCE
> documents.
> 
> Also make sure that you keep the change history at the end of the spec
> updated, and add your name to the list of contributors.
> 

OK, here's the updated patch.

Tom

Index: wm-spec.xml
===================================================================
RCS file: /cvs/icccm-extensions/wm-spec/wm-spec.xml,v
retrieving revision 1.6
diff -u -r1.6 wm-spec.xml
--- wm-spec.xml	29 Jul 2003 18:08:38 -0000	1.6
+++ wm-spec.xml	10 Dec 2003 01:04:11 -0000
@@ -744,7 +744,34 @@
 	terminate the operation, e.g. by pressing the ESC key.  
         </para>
 	</sect2>
-	</sect1>	
+    <sect2><title>_NET_REQUEST_FRAME_EXTENTS</title>
+	<programlisting><![CDATA[
+_NET_REQUEST_FRAME_EXTENTS
+  window = window for which to set _NET_FRAME_EXTENTS
+  message_type = _NET_REQUEST_FRAME_EXTENTS
+]]></programlisting>
+	<para>
+A Client that wishes to know the extents of its window's frame SHOULD
+send this message to the root window.  The Window Manager SHOULD
+respond by setting the window's _NET_FRAME_EXTENTS property.
+	</para>
+	<para>
+If the Window Manager receives a _NET_REQUEST_FRAME_EXTENTS message
+before the window is mapped, it SHOULD calculate the frame extents
+that the window would be given upon mapping, then set
+_NET_FRAME_EXTENTS accordingly.
+	</para>
+	<para>
+Rationale: A client cannot calculate the dimensions of its window's
+frame before the window is mapped, but some toolkits need this
+information.  Asking the window manager for the extents is a workable
+solution.  The extents calculation may depend on the current theme,
+font sizes or other window properties.  The client can track changes
+to the frame's dimensions by listening for _NET_FRAME_EXTENTS
+PropertyNotify events.
+	</para>
+	</sect2>
+</sect1>
 	<sect1>
 	<title>Application Window Properties</title>
 	<sect2><title>_NET_WM_NAME</title>
@@ -1298,6 +1325,16 @@
 event.
         </para>
     </sect2>
+	<sect2><title>_NET_FRAME_EXTENTS</title>
+	<programlisting><![CDATA[
+_NET_FRAME_EXTENTS, left, right, top, bottom, CARDINAL[4]/32
+]]></programlisting>
+	<para>
+The Window Manager SHOULD set _NET_FRAME_EXTENTS to the extents of the
+window's frame.  left, right, top and bottom are widths of the
+respective borders added by the Window Manager.
+	</para>
+	</sect2>
 </sect1>
 <sect1>
 	<title>Window Manager Protocols</title>
@@ -1792,6 +1829,7 @@
 		<para>David Rosenthal</para>
                 <para>Lubos Lunak</para>
                 <para>Rob Adams</para>
+                <para>Thomas Fitzsimmons</para>
 	</sect1>
   <sect1>
     <title>Change history</title>
@@ -1799,6 +1837,10 @@
  		<title>Changes since 1.2</title>
  		<itemizedlist>
  			<listitem><para>
+Added _NET_REQUEST_FRAME_EXTENTS and _NET_FRAME_EXTENTS to allow a
+client to retrieve its window's frame extents.
+ 			</para></listitem>
+ 			<listitem><para>
 Added new property _NET_WM_STRUT_PARTIAL to allow partial-width struts.
  			</para></listitem>
  			<listitem><para>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]