Remove now unnecessary files as everything is implemented in xcbgen.
[free-sw/xcb/proto] / src / randr.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2006 Jeremy Kolb, Ian Osgood
4 All Rights Reserved.
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in all
14 copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23 Except as contained in this notice, the names of the authors or their
24 institutions shall not be used in advertising or otherwise to promote the
25 sale, use or other dealings in this Software without prior written
26 authorization from the authors.
27 -->
28
29 <xcb header="randr" extension-xname="RANDR" extension-name="RandR"
30     major-version="1" minor-version="3">
31
32         <import>xproto</import>
33         <import>render</import>
34
35         <!-- XIDs -->
36         <xidtype name="MODE" />
37         <xidtype name="CRTC" />
38         <xidtype name="OUTPUT" />
39         
40         <!-- Errors -->
41
42         <error name="BadOutput" number="0" />
43         <error name="BadCrtc"   number="1" />
44         <error name="BadMode"   number="2" />
45
46         <!-- Requests -->
47
48         <enum name="Rotation">
49                 <item name="Rotate_0">  <bit>0</bit></item>
50                 <item name="Rotate_90"> <bit>1</bit></item>
51                 <item name="Rotate_180"><bit>2</bit></item>
52                 <item name="Rotate_270"><bit>3</bit></item>
53                 <item name="Reflect_X"> <bit>4</bit></item>
54                 <item name="Reflect_Y"> <bit>5</bit></item>
55         </enum>
56
57         <struct name="ScreenSize">
58                 <field type="CARD16" name="width" />   <!-- pixels -->
59                 <field type="CARD16" name="height" />
60                 <field type="CARD16" name="mwidth" />  <!-- millimeters -->
61                 <field type="CARD16" name="mheight" />
62         </struct>
63         
64         <struct name="RefreshRates">
65                 <field type="CARD16" name="nRates" />
66                 <list type="CARD16" name="rates">
67                         <fieldref>nRates</fieldref>
68                 </list>
69         </struct>
70         
71         <request name="QueryVersion" opcode="0">
72                 <field type="CARD32" name="major_version" />
73                 <field type="CARD32" name="minor_version" />
74                 <reply>
75                         <pad bytes="1" />
76                         <field type="CARD32" name="major_version" />
77                         <field type="CARD32" name="minor_version" />
78                         <pad bytes="16" />
79                 </reply>
80         </request>
81         
82         <!-- Skip obsolete opcode 1 so old clients fail immediately -->
83
84         <enum name="SetConfig">
85                 <item name="Success"><value>0</value></item>
86                 <item name="InvalidConfigTime"><value>1</value></item>
87                 <item name="InvalidTime"><value>2</value></item>
88                 <item name="Failed"><value>3</value></item>
89         </enum>
90
91         <!-- This is for the 1.1 version request.  I don't believe we need to specify a 1.0 request
92         as few things used randr 1.0.  The only difference is the removal of refresh and padding I think.
93         BEWARE: the docs lie!
94         -->
95         <request name="SetScreenConfig" opcode="2">
96                 <field type="WINDOW" name="window" />
97                 <field type="TIMESTAMP" name="timestamp" />
98                 <field type="TIMESTAMP" name="config_timestamp" />
99                 <field type="CARD16" name="sizeID" />
100                 <field type="CARD16" name="rotation" mask="Rotation" />
101                 <field type="CARD16" name="rate" />
102                 <pad bytes="2" />
103                 <reply>
104                         <field type="CARD8" name="status" enum="SetConfig" />
105                         <field type="TIMESTAMP" name="new_timestamp" />
106                         <field type="TIMESTAMP" name="config_timestamp" />
107                         <field type="WINDOW" name="root" />
108                         <field type="CARD16" name="subpixel_order" enum="SubPixel" />
109                         <pad bytes="10" />
110                 </reply>
111         </request>
112         
113         <!-- opcode 3 is obsolete -->
114
115         <enum name="NotifyMask" >
116                 <item name="ScreenChange">  <bit>0</bit></item>
117                 <!-- new in 1.2 -->
118                 <item name="CrtcChange">    <bit>1</bit></item>
119                 <item name="OutputChange">  <bit>2</bit></item>
120                 <item name="OutputProperty"><bit>3</bit></item>
121         </enum>
122
123         <request name="SelectInput" opcode="4"> 
124                 <field type="WINDOW" name="window" />
125                 <field type="CARD16" name="enable" mask="NotifyMask" />
126                 <pad bytes="2" />
127         </request>
128
129         <!--
130         I think this is correct.  It works. though I believe nInfo is a bit high...
131         -->
132         <request name="GetScreenInfo" opcode="5">
133                 <field type="WINDOW" name="window" />
134                 <reply>
135                         <field type="CARD8" name="rotations" mask="Rotation" />
136                         <field type="WINDOW" name="root" />
137                         <field type="TIMESTAMP" name="timestamp" />
138                         <field type="TIMESTAMP" name="config_timestamp" />
139                         <field type="CARD16" name="nSizes" />
140                         <field type="CARD16" name="sizeID" />
141                         <field type="CARD16" name="rotation" mask="Rotation" />
142                         <field type="CARD16" name="rate" />
143                         <field type="CARD16" name="nInfo" />
144                         <pad bytes="2" />
145                         <list type="ScreenSize" name="sizes">
146                             <fieldref>nSizes</fieldref>
147                         </list>
148                         <list type="RefreshRates" name="rates">
149                                 <op op="-">
150                                         <fieldref>nInfo</fieldref>
151                                         <fieldref>nSizes</fieldref>
152                                 </op>
153                         </list>
154                 </reply>
155         </request>
156
157         <!-- new in version 1.2 -->
158
159         <request name="GetScreenSizeRange" opcode="6">
160                 <field type="WINDOW" name="window" />
161                 <reply>
162                         <pad bytes="1" />
163                         <field type="CARD16" name="min_width" />
164                         <field type="CARD16" name="min_height" />
165                         <field type="CARD16" name="max_width" />
166                         <field type="CARD16" name="max_height" />
167                         <pad bytes="16" />
168                 </reply>
169         </request>
170
171         <request name="SetScreenSize" opcode="7">
172                 <field type="WINDOW" name="window" />
173                 <field type="CARD16" name="width" />    <!-- pixels -->
174                 <field type="CARD16" name="height" />
175                 <field type="CARD32" name="mm_width" />  <!-- millimeters -->
176                 <field type="CARD32" name="mm_height" />
177         </request>
178
179         <!-- for GetScreenResources.ModeInfo.ModeFlag -->
180         <enum name="ModeFlag">
181                 <item name="HsyncPositive"> <bit>0</bit></item>
182                 <item name="HsyncNegative"> <bit>1</bit></item>
183                 <item name="VsyncPositive"> <bit>2</bit></item>
184                 <item name="VsyncNegative"> <bit>3</bit></item>
185                 <item name="Interlace">     <bit>4</bit></item>
186                 <item name="DoubleScan">    <bit>5</bit></item>
187                 <item name="Csync">         <bit>6</bit></item>
188                 <item name="CsyncPositive"> <bit>7</bit></item>
189                 <item name="CsyncNegative"> <bit>8</bit></item>
190                 <item name="HskewPresent">  <bit>9</bit></item>
191                 <item name="Bcast">         <bit>10</bit></item>
192                 <item name="PixelMultiplex"><bit>11</bit></item>
193                 <item name="DoubleClock">   <bit>12</bit></item>
194                 <item name="HalveClock">    <bit>13</bit></item>
195         </enum>
196
197         <struct name="ModeInfo">
198                 <field type="CARD32" name="id" />
199                 <field type="CARD16" name="width" />
200                 <field type="CARD16" name="height" />
201                 <field type="CARD32" name="dot_clock" />
202                 <field type="CARD16" name="hsync_start" />
203                 <field type="CARD16" name="hsync_end" />
204                 <field type="CARD16" name="htotal" />
205                 <field type="CARD16" name="hskew" />
206                 <field type="CARD16" name="vsync_start" />
207                 <field type="CARD16" name="vsync_end" />
208                 <field type="CARD16" name="vtotal" />
209                 <field type="CARD16" name="name_len" />
210                 <field type="CARD32" name="mode_flags" mask="ModeFlag" />
211                 <!-- the mode name itself -->
212         </struct>
213
214         <request name="GetScreenResources" opcode="8">
215                 <field type="WINDOW" name="window" />
216                 <reply>
217                         <pad bytes="1" />
218                         <field type="TIMESTAMP" name="timestamp" />
219                         <field type="TIMESTAMP" name="config_timestamp" />
220                         <field type="CARD16" name="num_crtcs" />
221                         <field type="CARD16" name="num_outputs" />
222                         <field type="CARD16" name="num_modes" />
223                         <field type="CARD16" name="names_len" />
224                         <pad bytes="8" />
225                         <list type="CRTC" name="crtcs">
226                             <fieldref>num_crtcs</fieldref>
227                         </list>
228                         <list type="OUTPUT" name="outputs">
229                             <fieldref>num_outputs</fieldref>
230                         </list>
231                         <list type="ModeInfo" name="modes">
232                             <fieldref>num_modes</fieldref>
233                         </list>
234                         <!-- FIXME: this is *not* null separated!
235                              One must use ModeInfo.name_len from each previous
236                              ModeInfo to infer the position of the name. -->
237                         <list type="BYTE" name="names">
238                             <fieldref>names_len</fieldref>
239                         </list>
240                 </reply>
241         </request>
242
243         <!-- for GetOutputInfo.connection -->
244         <enum name="Connection">
245                 <item name="Connected" />
246                 <item name="Disconnected" />
247                 <item name="Unknown" />
248         </enum>
249
250         <request name="GetOutputInfo" opcode="9">
251                 <field type="OUTPUT" name="output" />
252                 <field type="TIMESTAMP" name="config_timestamp" />
253                 <reply>
254                         <field type="CARD8" name="status" enum="SetConfig" />
255                         <field type="TIMESTAMP" name="timestamp" />
256                         <field type="CRTC" name="crtc" />
257                         <field type="CARD32" name="mm_width" />  <!-- millimeters -->
258                         <field type="CARD32" name="mm_height" />
259                         <field type="CARD8" name="connection" enum="Connection" />
260                         <field type="CARD8" name="subpixel_order" enum="SubPixel" />
261                         <field type="CARD16" name="num_crtcs" />
262                         <field type="CARD16" name="num_modes" />
263                         <field type="CARD16" name="num_preferred" />
264                         <field type="CARD16" name="num_clones" />
265                         <field type="CARD16" name="name_len" />
266                         <list type="CRTC" name="crtcs">
267                             <fieldref>num_crtcs</fieldref>
268                         </list>
269                         <list type="MODE" name="modes">
270                             <fieldref>num_modes</fieldref>
271                         </list>
272                         <list type="OUTPUT" name="clones">
273                             <fieldref>num_clones</fieldref>
274                         </list>
275                         <list type="BYTE" name="name">
276                             <fieldref>name_len</fieldref>
277                         </list>
278                 </reply>
279         </request>
280
281         <request name="ListOutputProperties" opcode="10">
282                 <field type="OUTPUT" name="output" />
283                 <reply>
284                         <pad bytes="1" />
285                         <field type="CARD16" name="num_atoms" />
286                         <pad bytes="22" />
287                         <list type="ATOM" name="atoms">
288                                 <fieldref>num_atoms</fieldref>
289                         </list>
290                 </reply>
291         </request>
292
293         <request name="QueryOutputProperty" opcode="11">
294                 <field type="OUTPUT" name="output" />
295                 <field type="ATOM" name="property" />
296                 <reply>
297                         <pad bytes="1" />
298                         <field type="BOOL" name="pending" />
299                         <field type="BOOL" name="range" />
300                         <field type="BOOL" name="immutable" />
301                         <pad bytes="21" />
302                         <list type="INT32" name="validValues">
303                                 <fieldref>length</fieldref>
304                         </list>
305                 </reply>
306         </request>
307
308         <request name="ConfigureOutputProperty" opcode="12">
309                 <field type="OUTPUT" name="output" />
310                 <field type="ATOM" name="property" />
311                 <field type="BOOL" name="pending" />
312                 <field type="BOOL" name="range" />
313                 <pad bytes="2" />
314                 <list type="INT32" name="values" />
315         </request>
316
317         <request name="ChangeOutputProperty" opcode="13">
318                 <field type="OUTPUT" name="output" />
319                 <field type="ATOM" name="property" />
320                 <field type="ATOM" name="type" />
321                 <field type="CARD8" name="format" />
322                 <field type="CARD8" name="mode" enum="PropMode" />
323                 <pad bytes="2" />
324                 <field type="CARD32" name="num_units" />
325                 <list type="void" name="data">
326                     <op op="/">
327                         <op op="*">
328                             <fieldref>num_units</fieldref>
329                             <fieldref>format</fieldref>
330                         </op>
331                         <value>8</value>
332                     </op>
333                 </list>
334         </request>
335
336         <request name="DeleteOutputProperty" opcode="14">
337                 <field type="OUTPUT" name="output" />
338                 <field type="ATOM" name="property" />
339         </request>
340
341         <!-- NOTE: num_items depends on format (8/16/32) -->
342         <request name="GetOutputProperty" opcode="15">
343                 <field type="OUTPUT" name="output" />
344                 <field type="ATOM" name="property" />
345                 <field type="ATOM" name="type" altenum="GetPropertyType" />
346                 <field type="CARD32" name="long_offset" />
347                 <field type="CARD32" name="long_length" />
348                 <field type="BOOL" name="delete" />
349                 <field type="BOOL" name="pending" />
350                 <pad bytes="2" />
351                 <reply>
352                         <field type="CARD8" name="format" />
353                         <field type="ATOM" name="type" altenum="Atom" />
354                         <field type="CARD32" name="bytes_after" />
355                         <field type="CARD32" name="num_items" />
356                         <pad bytes="12" />
357                         <list type="BYTE" name="data">
358                                 <!-- n * format / 8 -->
359                                 <op op="*">
360                                         <fieldref>num_items</fieldref>
361                                         <op op="/">
362                                                 <fieldref>format</fieldref>
363                                                 <value>8</value>
364                                         </op>
365                                 </op>
366                         </list>
367                 </reply>
368         </request>
369
370         <request name="CreateMode" opcode="16">
371                 <field type="WINDOW" name="window" />
372                 <field type="ModeInfo" name="mode_info" />
373                 <list type="char" name="name" />
374                 <reply>
375                         <pad bytes="1" />
376                         <field type="MODE" name="mode" />
377                         <pad bytes="20" />
378                 </reply>
379         </request>
380
381         <request name="DestroyMode" opcode="17">
382                 <field type="MODE" name="mode" />
383         </request>
384
385         <request name="AddOutputMode" opcode="18">
386                 <field type="OUTPUT" name="output" />
387                 <field type="MODE" name="mode" />
388         </request>
389
390         <request name="DeleteOutputMode" opcode="19">
391                 <field type="OUTPUT" name="output" />
392                 <field type="MODE" name="mode" />
393         </request>
394
395         <request name="GetCrtcInfo" opcode="20">
396                 <field type="CRTC" name="crtc" />
397                 <field type="TIMESTAMP" name="config_timestamp" />
398                 <reply>
399                         <field type="CARD8" name="status" enum="SetConfig" />
400                         <field type="TIMESTAMP" name="timestamp" />
401                         <field type="INT16" name="x" />
402                         <field type="INT16" name="y" />
403                         <field type="CARD16" name="width" />
404                         <field type="CARD16" name="height" />
405                         <field type="MODE" name="mode" />
406                         <field type="CARD16" name="rotation" mask="Rotation" />
407                         <field type="CARD16" name="rotations" mask="Rotation" />
408                         <field type="CARD16" name="num_outputs" />
409                         <field type="CARD16" name="num_possible_outputs" />
410                         <list type="OUTPUT" name="outputs">
411                                 <fieldref>num_outputs</fieldref>
412                         </list>
413                         <list type="OUTPUT" name="possible">
414                                 <fieldref>num_possible_outputs</fieldref>
415                         </list>
416                 </reply>
417         </request>
418
419         <request name="SetCrtcConfig" opcode="21">
420                 <field type="CRTC" name="crtc" />
421                 <field type="TIMESTAMP" name="timestamp" />
422                 <field type="TIMESTAMP" name="config_timestamp" />
423                 <field type="INT16" name="x" />
424                 <field type="INT16" name="y" />
425                 <field type="MODE" name="mode" />
426                 <field type="CARD16" name="rotation" mask="Rotation" />
427                 <pad bytes="2" />
428                 <list type="OUTPUT" name="outputs" />
429                 <reply>
430                         <field type="CARD8" name="status" enum="SetConfig" />
431                         <field type="TIMESTAMP" name="timestamp" />
432                         <pad bytes="20" />
433                 </reply>
434         </request>
435
436         <request name="GetCrtcGammaSize" opcode="22">
437                 <field type="CRTC" name="crtc" />
438                 <reply>
439                         <pad bytes="1" />
440                         <field type="CARD16" name="size" />
441                         <pad bytes="22" />
442                 </reply>
443         </request>
444
445         <request name="GetCrtcGamma" opcode="23">
446                 <field type="CRTC" name="crtc" />
447                 <reply>
448                         <pad bytes="1" />
449                         <field type="CARD16" name="size" />
450                         <pad bytes="22" />
451                         <list type="CARD16" name="red">
452                                 <fieldref>size</fieldref>
453                         </list>
454                         <list type="CARD16" name="green">
455                                 <fieldref>size</fieldref>
456                         </list>
457                         <list type="CARD16" name="blue">
458                                 <fieldref>size</fieldref>
459                         </list>
460                 </reply>
461         </request>
462
463         <request name="SetCrtcGamma" opcode="24">
464                 <field type="CRTC" name="crtc" />
465                 <field type="CARD16" name="size" />
466                 <pad bytes="2"/>
467                 <list type="CARD16" name="red">
468                         <fieldref>size</fieldref>
469                 </list>
470                 <list type="CARD16" name="green">
471                         <fieldref>size</fieldref>
472                 </list>
473                 <list type="CARD16" name="blue">
474                         <fieldref>size</fieldref>
475                 </list>
476         </request>
477
478         <!-- new in 1.3 -->
479
480         <request name="GetScreenResourcesCurrent" opcode="25">
481                 <field type="WINDOW" name="window" />
482                 <reply>
483                         <pad bytes="1" />
484                         <field type="TIMESTAMP" name="timestamp" />
485                         <field type="TIMESTAMP" name="config_timestamp" />
486                         <field type="CARD16" name="num_crtcs" />
487                         <field type="CARD16" name="num_outputs" />
488                         <field type="CARD16" name="num_modes" />
489                         <field type="CARD16" name="names_len" />
490                         <pad bytes="8" />
491                         <list type="CRTC" name="crtcs">
492                             <fieldref>num_crtcs</fieldref>
493                         </list>
494                         <list type="OUTPUT" name="outputs">
495                             <fieldref>num_outputs</fieldref>
496                         </list>
497                         <list type="ModeInfo" name="modes">
498                             <fieldref>num_modes</fieldref>
499                         </list>
500                         <!-- FIXME: this is *not* null separated!
501                              One must use ModeInfo.name_len from each previous
502                              ModeInfo to infer the position of the name. -->
503                         <list type="BYTE" name="names">
504                             <fieldref>names_len</fieldref>
505                         </list>
506                 </reply>
507         </request>
508
509         <request name="SetCrtcTransform" opcode="26">
510                 <field type="CRTC" name="crtc" />
511                 <field type="TRANSFORM" name="transform" />
512                 <field type="CARD16" name="filter_len" />
513                 <pad bytes="2" />
514                 <list type="char" name="filter_name">
515                         <fieldref>filter_len</fieldref>
516                 </list>
517                 <list type="FIXED" name="filter_params" />
518         </request>
519
520         <request name="GetCrtcTransform" opcode="27">
521                 <field type="CRTC" name="crtc" />
522                 <reply>
523                         <pad bytes="1" />
524                         <field type="TRANSFORM" name="pending_transform" />
525                         <field type="BOOL" name="has_transforms" />
526                         <pad bytes="3" />
527                         <field type="TRANSFORM" name="current_transform" />
528                         <pad bytes="4" />
529                         <field type="CARD16" name="pending_len" />
530                         <field type="CARD16" name="pending_nparams" />
531                         <field type="CARD16" name="current_len" />
532                         <field type="CARD16" name="current_nparams" />
533                         <list type="char" name="pending_filter_name" >
534                                 <fieldref>pending_len</fieldref>
535                         </list>
536                         <list type="FIXED" name="pending_params" >
537                                 <fieldref>pending_nparams</fieldref>
538                         </list>
539                         <list type="char" name="current_filter_name" >
540                                 <fieldref>current_len</fieldref>
541                         </list>
542                         <list type="FIXED" name="current_params" >
543                                 <fieldref>current_nparams</fieldref>
544                         </list>
545                 </reply>
546         </request>
547
548         <request name="GetPanning" opcode="28">
549                 <field type="CRTC" name="crtc" />
550                 <reply>
551                         <field type="CARD8" name="status" enum="SetConfig" />
552                         <field type="TIMESTAMP" name="timestamp" />
553                         <field type="CARD16" name="left" />
554                         <field type="CARD16" name="top" />
555                         <field type="CARD16" name="width" />
556                         <field type="CARD16" name="height" />
557                         <field type="CARD16" name="track_left" />
558                         <field type="CARD16" name="track_top" />
559                         <field type="CARD16" name="track_width" />
560                         <field type="CARD16" name="track_height" />
561                         <field type="INT16" name="border_left" />
562                         <field type="INT16" name="border_top" />
563                         <field type="INT16" name="border_right" />
564                         <field type="INT16" name="border_bottom" />
565                 </reply>
566         </request>
567
568         <request name="SetPanning" opcode="29">
569                 <field type="CRTC" name="crtc" />
570                 <field type="TIMESTAMP" name="timestamp" />
571                 <field type="CARD16" name="left" />
572                 <field type="CARD16" name="top" />
573                 <field type="CARD16" name="width" />
574                 <field type="CARD16" name="height" />
575                 <field type="CARD16" name="track_left" />
576                 <field type="CARD16" name="track_top" />
577                 <field type="CARD16" name="track_width" />
578                 <field type="CARD16" name="track_height" />
579                 <field type="INT16" name="border_left" />
580                 <field type="INT16" name="border_top" />
581                 <field type="INT16" name="border_right" />
582                 <field type="INT16" name="border_bottom" />
583                 <reply>
584                         <field type="CARD8" name="status" enum="SetConfig" />
585                         <field type="TIMESTAMP" name="timestamp" />
586                 </reply>
587         </request>
588
589         <request name="SetOutputPrimary" opcode="30">
590                 <field type="WINDOW" name="window" />
591                 <field type="OUTPUT" name="output" />
592         </request>
593
594         <request name="GetOutputPrimary" opcode="31">
595                 <field type="WINDOW" name="window" />
596                 <reply>
597                         <pad bytes="1" />
598                         <field type="OUTPUT" name="output" />
599                 </reply>
600         </request>
601
602         <!-- Events -->
603
604         <event name="ScreenChangeNotify" number="0">
605                 <field type="CARD8" name="rotation" mask="Rotation" />
606                 <field type="TIMESTAMP" name="timestamp" />
607                 <field type="TIMESTAMP" name="config_timestamp" />
608                 <field type="WINDOW" name="root" />
609                 <field type="WINDOW" name="request_window" />
610                 <field type="CARD16" name="sizeID" />
611                 <field type="CARD16" name="subpixel_order" enum="SubPixel" />
612                 <field type="CARD16" name="width" />
613                 <field type="CARD16" name="height" />
614                 <field type="CARD16" name="mwidth" />
615                 <field type="CARD16" name="mheight" />
616         </event>
617
618         <!-- New in version 1.2 -->
619
620         <!-- subcode -->
621         <enum name="Notify" >
622                 <item name="CrtcChange">    <value>0</value></item>
623                 <item name="OutputChange">  <value>1</value></item>
624                 <item name="OutputProperty"><value>2</value></item>
625         </enum>
626
627         <struct name="CrtcChange">
628                 <field type="TIMESTAMP" name="timestamp" />
629                 <field type="WINDOW" name="window" />
630                 <field type="CRTC" name="crtc" />
631                 <field type="MODE" name="mode" />
632                 <field type="CARD16" name="rotation" mask="Rotation" />
633                 <pad bytes="2" />
634                 <field type="INT16" name="x" />
635                 <field type="INT16" name="y" />
636                 <field type="CARD16" name="width" />
637                 <field type="CARD16" name="height" />
638         </struct>
639
640         <struct name="OutputChange">
641                 <field type="TIMESTAMP" name="timestamp" />
642                 <field type="TIMESTAMP" name="config_timestamp" />
643                 <field type="WINDOW" name="window" />
644                 <field type="OUTPUT" name="output" />
645                 <field type="CRTC" name="crtc" />
646                 <field type="MODE" name="mode" />
647                 <field type="CARD16" name="rotation" mask="Rotation" />
648                 <field type="CARD8" name="connection" enum="Connection" />
649                 <field type="CARD8" name="subpixel_order" enum="SubPixel" />
650         </struct>
651
652         <struct name="OutputProperty">
653                 <field type="WINDOW" name="window" />
654                 <field type="OUTPUT" name="output" />
655                 <field type="ATOM" name="atom" />
656                 <field type="TIMESTAMP" name="timestamp" />
657                 <field type="CARD8" name="status" enum="Property" />
658                 <pad bytes="11" />
659         </struct>
660
661         <union name="NotifyData">
662                 <field type="CrtcChange"     name="cc" />
663                 <field type="OutputChange"   name="oc" />
664                 <field type="OutputProperty" name="op" />
665         </union>
666
667         <event name="Notify" number="1">
668                 <field type="CARD8" name="subCode" enum="Notify" />
669                 <field type="NotifyData" name="u" />
670         </event>
671 </xcb>