default values for client messages



 Hello,

 any objections against committing the attached changes? The patch only add a 
couple of 'other data.l[] elements = 0' to descriptions of various messages 
used in the spec, in order to allow possible future extensions (see my other 
mail). KDE apps do this already anyway, but when I grepped Gtk I noticed it 
has unused fields uninitialized.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l lunak suse cz , l lunak kde org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/
--- wm-spec.sgml.sav	2003-01-03 21:31:14.000000000 +0100
+++ wm-spec.sgml	2003-05-15 13:43:22.000000000 +0200
@@ -1,6 +1,6 @@
 <!doctype article PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
 <!entity version "Draft version 1.3">
-<!entity date "January 3, 2003">
+<!entity date "May 5, 2003">
 ]>
 <article id="index">
 <articleinfo>
@@ -318,6 +318,7 @@ _NET_NUMBER_OF_DESKTOPS
   message_type = _NET_NUMBER_OF_DESKTOPS
   format = 32
   data.l[0] = new_number_of_desktops
+  other data.l[] elements = 0
 ]]></programlisting>
 	<para>
 The Window Manager is free to honor or reject this request. If the request is honored _NET_NUMBER_OF_DESKTOPS MUST be set to the new number of desktops, _NET_VIRTUAL_ROOTS MUST be set to store the new number of desktop virtual root window IDs and _NET_DESKTOP_VIEWPORT and _NET_WORKAREA must also be changed accordingly. The _NET_DESKTOP_NAMES property MAY remain unchanged.
@@ -347,6 +348,7 @@ _NET_DESKTOP_GEOMETRY
   format = 32
   data.l[0] = new_width
   data.l[1] = new_height
+  other data.l[] elements = 0
 ]]></programlisting> 
 		<para>
 The Window Manager MAY choose to ignore this message, in which case _NET_DESKTOP_GEOMETRY property will remain unchanged.
@@ -372,6 +374,7 @@ _NET_DESKTOP_VIEWPORT
   format = 32
   data.l[0] = new_vx
   data.l[1] = new_vy
+  other data.l[] elements = 0
 ]]></programlisting> 
 		<para>
 The Window Manager MAY choose to ignore this message, in which case _NET_DESKTOP_VIEWPORT property will remain unchanged.
@@ -391,6 +394,7 @@ _NET_CURRENT_DESKTOP
   message_type = _NET_CURRENT_DESKTOP 
   format = 32
   data.l[0] = new_index
+  other data.l[] elements = 0
 ]]></programlisting>
 	</sect2><sect2><title>_NET_DESKTOP_NAMES</title>
 	<programlisting><![CDATA[
@@ -432,6 +436,7 @@ _NET_ACTIVE_WINDOW
   message_type = _NET_ACTIVE_WINDOW
   format = 32
   data.l[0] = 0 /* may be used later */
+  other data.l[] elements = 0
 ]]></programlisting>
 	</sect2><sect2><title>_NET_WORKAREA</title>
 	<programlisting><![CDATA[
@@ -610,6 +615,7 @@ _NET_SHOWING_DESKTOP
   message_type = _NET_SHOWING_DESKTOP 
   format = 32
   data.l[0] = boolean 0 or 1
+  other data.l[] elements = 0
 ]]></programlisting> 
  The Window Manager may choose to ignore this client message.
        </para>
@@ -632,6 +638,7 @@ _NET_CLOSE_WINDOW
   message_type = _NET_CLOSE_WINDOW
   format = 32
   data.l[0] = 0 /* may be used later */
+  other data.l[] elements = 0
 ]]></programlisting>
 	<para>
 The Window Manager MUST then attempt to close the window specified.
@@ -688,6 +695,7 @@ _NET_WM_MOVERESIZE
   data.l[1] = y_root
   data.l[2] = direction
   data.l[3] = button
+  other data.l[] elements = 0
 ]]></programlisting>
 	<para>
 	This message allows Clients to initiate window movement or 
@@ -813,6 +821,7 @@ _NET_WM_DESKTOP
   message_type = _NET_WM_DESKTOP
   format = 32
   data.l[0] = new_desktop
+  other data.l[] elements = 0
 ]]></programlisting>
 	<para>
 	The Window Manager MUST keep this property updated on all windows.
@@ -1230,6 +1239,7 @@ message_type = WM_PROTOCOLS
 format = 32
 data.l[0] = _NET_WM_PING
 data.l[1] = timestamp
+other data.l[] elements = 0
 ]]></programlisting>
 		<para>
 A participating Client receiving this message MUST send it back to the root


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