This file is indexed.

/usr/share/doc/python-xlib/html/python-xlib_13.html is in python-xlib 0.14+20091101-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
<HTML>
<HEAD>
<!-- Created by texi2html 1.56k from ../src/python-xlib.texi on 18 November 2009 -->

<TITLE>The Python X Library - Event Types</TITLE>
</HEAD>
<BODY>
Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_12.html">previous</A>, <A HREF="python-xlib_14.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>.
<P><HR><P>


<H2><A NAME="SEC12" HREF="python-xlib_toc.html#TOC12">Event Types</A></H2>

<P>
This section describes all event types by listing their fields and basic
information on when they are generated.  All events are defined in the
module <CODE>Xlib.protocol.event</CODE>.  All event types have the following
two attributes:


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>type</B>
<DD><A NAME="IDX8"></A>


<P>
Stores the X type code of this event.  Type codes are integers in the
range 2-127, and are defined with symbolic names in <CODE>Xlib.X</CODE>.  The
symbolic names are the same as the event class names, except for the
special event <CODE>AnyEvent</CODE>.


</DL>

<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>send_event</B>
<DD><A NAME="IDX9"></A>


<P>
This attribute is normally 0, meaning that the event was generated by
the X server.  It is set to 1 if this event was instead sent from
another client.


</DL>

<P>
Event object can be created by instantiating the corresponding event
class, providing all the attributes described for the event as keyword
arguments. 


<P>
<DL>
<DT><U>Event:</U> <B>KeyPress</B>
<DD><A NAME="IDX10"></A>
<DT><U>Event:</U> <B>KeyRelease</B>
<DD><A NAME="IDX11"></A>
<DT><U>Event:</U> <B>ButtonPress</B>
<DD><A NAME="IDX12"></A>
<DT><U>Event:</U> <B>ButtonRelease</B>
<DD><A NAME="IDX13"></A>
<DT><U>Event:</U> <B>MotionNotify</B>
<DD><A NAME="IDX14"></A>


<P>
These events are generated when a key or a button logically changes
state, or when the pointer logically moves.  In the discussion below,
the <EM>source window</EM> is the window that the event occured in.  The
event may be generated on some other window than the source window, see
XKeyEvent(3X11) for details.  The same man page also describes
<CODE>MotionNotify</CODE>.


<P>
<DL>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>time</B>
<DD><A NAME="IDX15"></A>
The server X time when this event was generated.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>root</B>
<DD><A NAME="IDX16"></A>
The root window which the source window is an inferior of.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>window</B>
<DD><A NAME="IDX17"></A>
The window the event is reported on.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>same_screen</B>
<DD><A NAME="IDX18"></A>
Set to 1 if <CODE>window</CODE> is on the same screen as <CODE>root</CODE>, 0
otherwise.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>child</B>
<DD><A NAME="IDX19"></A>
If the source window is an inferior of <CODE>window</CODE>, <CODE>child</CODE> is
set to the child of <CODE>window</CODE> that is the ancestor of (or is) the
source window.  Otherwise it is set to <CODE>X.NONE</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>root_x</B>
<DD><A NAME="IDX20"></A>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>root_y</B>
<DD><A NAME="IDX21"></A>
The pointer coordinates at the time of the event, relative to the root
window. 
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>event_x</B>
<DD><A NAME="IDX22"></A>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>event_y</B>
<DD><A NAME="IDX23"></A>
The pointer coordinates at the time of the event, relative to
<CODE>window</CODE>.  If <CODE>window</CODE> is not on the same screen as
<CODE>root</CODE>, these are set to 0.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>state</B>
<DD><A NAME="IDX24"></A>
The logical state of the button and modifier keys just before the event.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> KeyButtonPointerEvent <B>detail</B>
<DD><A NAME="IDX25"></A>
For <CODE>KeyPress</CODE> and <CODE>KeyRelease</CODE>, this is the keycode of the
event key.


<P>
For <CODE>ButtonPress</CODE> and <CODE>ButtonRelease</CODE>, this is the button of
the event.


<P>
For <CODE>MotionNotify</CODE>, this is either <CODE>X.NotifyNormal</CODE> or
<CODE>X.NotifyHint</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>EnterNotify</B>
<DD><A NAME="IDX26"></A>
<DT><U>Event:</U> <B>LeaveNotify</B>
<DD><A NAME="IDX27"></A>


<P>
If pointer motion or window hierarchy change causes the pointer to be in
another window than before, these events are generated instead of
a <CODE>MotionNotify</CODE> event.


<P>
The semantics are quite complex, see XCrossingEvent(3X11) for details.


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>time</B>
<DD><A NAME="IDX28"></A>
The server X time when this event was generated.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>root</B>
<DD><A NAME="IDX29"></A>
The root window of the pointer at the end of this event.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>window</B>
<DD><A NAME="IDX30"></A>
The window the event is reported for.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>child</B>
<DD><A NAME="IDX31"></A>
In a <CODE>LeaveNotify</CODE> event, if a child of <CODE>window</CODE> contains the
initial pointer position, this is set to that child window.
In a <CODE>EnterNotify</CODE> event, if a child of <CODE>window</CODE> contains the
final pointer position, this is set to that child window.
Otherwise this is set to <CODE>X.NONE</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>root_x</B>
<DD><A NAME="IDX32"></A>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>root_y</B>
<DD><A NAME="IDX33"></A>
The final pointer position relative to <CODE>root</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>event_x</B>
<DD><A NAME="IDX34"></A>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>event_y</B>
<DD><A NAME="IDX35"></A>
The final pointer position relative to <CODE>window</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>state</B>
<DD><A NAME="IDX36"></A>
The modifier and button state at the time of the event.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>mode</B>
<DD><A NAME="IDX37"></A>
One of <CODE>X.NotifyNormal</CODE>, <CODE>X.NotifyGrab</CODE> or
<CODE>X.NotifyUngrab</CODE>. 
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>detail</B>
<DD><A NAME="IDX38"></A>
One of <CODE>X.NotifyAncestor</CODE>, <CODE>X.NotifyVirtual</CODE>,
<CODE>X.NotifyInferior</CODE>, <CODE>X.NotifyNonlinear</CODE>, or
<CODE>X.NotifyNonlinearVirtual</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> EnterLeaveEvent <B>flags</B>
<DD><A NAME="IDX39"></A>
If bit 0 is set, <CODE>window</CODE> is the focus window or an inferior of it.
If bit 1 is set, <CODE>window</CODE> is on the same screen as <CODE>root</CODE>.
</DL>


</DL>

<P>
    
<DL>
<DT><U>Event:</U> <B>FocusIn</B>
<DD><A NAME="IDX40"></A>
<DT><U>Event:</U> <B>FocusOut</B>
<DD><A NAME="IDX41"></A>


<P>
These events are generated when the focus changes.  This is also very
complex events, see XFocusChangeEvent(3X11) for details.


<P>
<DL>
<DT><U>Instance Variable:</U> FocusEvent <B>window</B>
<DD><A NAME="IDX42"></A>
The window the event is generated for.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> FocusEvent <B>mode</B>
<DD><A NAME="IDX43"></A>
One of <CODE>X.NotifyNormal</CODE>, <CODE>X.NotifyWhileGrabbed</CODE>,
<CODE>X.NotifyGrab</CODE>, or <CODE>X.NotifyUngrab</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> FocusEvent <B>detail</B>
<DD><A NAME="IDX44"></A>
One of <CODE>X.NotifyAncestor</CODE>, <CODE>X.NotifyVirtual</CODE>,
<CODE>X.NotifyInferior</CODE>, <CODE>X.NotifyNonlinear</CODE>, 
<CODE>X.NotifyNonlinearVirtual</CODE>, <CODE>X.NotifyPointer</CODE>,
<CODE>X.NotifyPointerRoot</CODE>, or <CODE>X.NONE</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>KeymapNotify</B>
<DD><A NAME="IDX45"></A>


<P>
This event is generated immediately after every <CODE>EnterNotify</CODE> and
<CODE>FocusIn</CODE>.


<P>
<DL>
<DT><U>Instance Variable:</U> KeymapNotify <B>data</B>
<DD><A NAME="IDX46"></A>
A list of 31 eight-bit integers, as returned by query_keymap.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>Expose</B>
<DD><A NAME="IDX47"></A>


<P>
This event is generated when regions of a window has to be redrawn.  The
regions are decomposed into a set of rectangles, and an <CODE>Expose</CODE>
event is generated for each rectangle.


<P>
<DL>
<DT><U>Instance Variable:</U> Expose <B>window</B>
<DD><A NAME="IDX48"></A>
The window containing regions to redraw.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> Expose <B>x</B>
<DD><A NAME="IDX49"></A>
<DT><U>Instance Variable:</U> Expose <B>y</B>
<DD><A NAME="IDX50"></A>
<DT><U>Instance Variable:</U> Expose <B>width</B>
<DD><A NAME="IDX51"></A>
<DT><U>Instance Variable:</U> Expose <B>height</B>
<DD><A NAME="IDX52"></A>
The coordinates of the rectangle to redraw.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> Expose <B>count</B>
<DD><A NAME="IDX53"></A>
At least this many more <CODE>Expose</CODE> events will immediately follow for
this window.  If this is the last event, <CODE>count</CODE> is set to 0.


<P>
This allows a simple application to ignore all <CODE>Expose</CODE> events
with a non-zero <CODE>count</CODE>, and then redraw the entire window when the
zero event is received.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>GraphicsExpose</B>
<DD><A NAME="IDX54"></A>
<DT><U>Event:</U> <B>NoExpose</B>
<DD><A NAME="IDX55"></A>


<P>
These events may be generated for drawables when a graphics context with
<CODE>graphics_exposures</CODE> selected is used.  See
XGraphicsExposeEvent(3X11) for details.


<P>
Both events have these attributes:


<P>
<DL>
<DT><U>Instance Variable:</U> GraphicsExpose <B>drawable</B>
<DD><A NAME="IDX56"></A>
The drawable of the event.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> GraphicsExpose <B>major_event</B>
<DD><A NAME="IDX57"></A>
<DT><U>Instance Variable:</U> GraphicsExpose <B>minor_event</B>
<DD><A NAME="IDX58"></A>
The major and minor number of the request that generated this event.
For the core protocol <CODE>major_event</CODE> is always 62 (CopyArea) or 63
(CopyPlane), and <CODE>minor_event</CODE> is always 0.
</DL>


<P>
GraphicsExpose have these additional attributes:


<P>
<DL>
<DT><U>Instance Variable:</U> GraphicsExpose <B>x</B>
<DD><A NAME="IDX59"></A>
<DT><U>Instance Variable:</U> GraphicsExpose <B>y</B>
<DD><A NAME="IDX60"></A>
<DT><U>Instance Variable:</U> GraphicsExpose <B>width</B>
<DD><A NAME="IDX61"></A>
<DT><U>Instance Variable:</U> GraphicsExpose <B>height</B>
<DD><A NAME="IDX62"></A>
The coordinates of the event region.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> GraphicsExpose <B>count</B>
<DD><A NAME="IDX63"></A>
At least this many more <CODE>GraphicsExposure</CODE> events follows.  The
last one has <CODE>count</CODE> set to 0.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>VisibilityNotify</B>
<DD><A NAME="IDX64"></A>


<P>
These events are generated when the visibility of a viewable window is
changed.  See XVisibilityNotifyEvent(3X11).


<P>
<DL>
<DT><U>Instance Variable:</U> VisibiltyNotify <B>window</B>
<DD><A NAME="IDX65"></A>
The window of the event.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> VisibiltyNotify <B>state</B>
<DD><A NAME="IDX66"></A>
One of <CODE>X.VisibilityUnobscured</CODE>,
<CODE>X.VisibilityPartiallyObscured</CODE>, or <CODE>X.VisibilityFullyObscured</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>CreateNotify</B>
<DD><A NAME="IDX67"></A>


<P>
This event is generated when a window is created.
<CODE>X.SubstructureNotifyMask</CODE> must be selected on the parent of the
new window to receive this event.


<P>
<DL>
<DT><U>Instance Variable:</U> CreateNotify <B>parent</B>
<DD><A NAME="IDX68"></A>
The parent of the new window.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> CreateNotify <B>window</B>
<DD><A NAME="IDX69"></A>
The new window.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> CreateNotify <B>x</B>
<DD><A NAME="IDX70"></A>
<DT><U>Instance Variable:</U> CreateNotify <B>y</B>
<DD><A NAME="IDX71"></A>
<DT><U>Instance Variable:</U> CreateNotify <B>width</B>
<DD><A NAME="IDX72"></A>
<DT><U>Instance Variable:</U> CreateNotify <B>height</B>
<DD><A NAME="IDX73"></A>
<DT><U>Instance Variable:</U> CreateNotify <B>border_width</B>
<DD><A NAME="IDX74"></A>
<DT><U>Instance Variable:</U> CreateNotify <B>override</B>
<DD><A NAME="IDX75"></A>
These values are fetched from the <CODE>create_window</CODE> call.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>DestroyNotify</B>
<DD><A NAME="IDX76"></A>


<P>
This event is generated when a window is destroyed.


<P>
<DL>
<DT><U>Instance Variable:</U> DestroyNotify <B>event</B>
<DD><A NAME="IDX77"></A>
The window that the event is generated for.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> DestroyNotify <B>window</B>
<DD><A NAME="IDX78"></A>
The window that was destroyed.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>UnmapNotify</B>
<DD><A NAME="IDX79"></A>


<P>
This event is generated when a window is unmapped.


<P>
<DL>
<DT><U>Instance Variable:</U> UnmapNotify <B>event</B>
<DD><A NAME="IDX80"></A>
The window that the event is generated for.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> UnmapNotify <B>window</B>
<DD><A NAME="IDX81"></A>
The window that was unmapped.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>from_configure</B>
<DD><A NAME="IDX82"></A>
This is true if <CODE>window</CODE> was unmapped because its parent was
resized and <CODE>window</CODE> had win-gravity <CODE>X.UnmapGravity</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>MapNotify</B>
<DD><A NAME="IDX83"></A>


<P>
This event is generated when a window is mapped.


<P>
<DL>
<DT><U>Instance Variable:</U> MapNotify <B>event</B>
<DD><A NAME="IDX84"></A>
The window that the event is generated for.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> MapNotify <B>window</B>
<DD><A NAME="IDX85"></A>
The window that was mapped.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>override</B>
<DD><A NAME="IDX86"></A>
This is set from the corresponding window attribute.
</DL>
</DL>


<P>
<DL>
<DT><U>Event:</U> <B>MapRequest</B>
<DD><A NAME="IDX87"></A>


<P>
This event is reported to the client that has set
<CODE>X.SubstructureRedirectMask</CODE> on a window, and an unmapped child of
that window attempts to be mapped by some other client, unless the child
has override-redirect set.


<P>
<DL>
<DT><U>Instance Variable:</U> MapRequest <B>parent</B>
<DD><A NAME="IDX88"></A>
The parent window.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> MapRequest <B>window</B>
<DD><A NAME="IDX89"></A>
The child window that attempts to be mapped.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>ReparentNotify</B>
<DD><A NAME="IDX90"></A>


<P>
This event is reported to clients selecting
<CODE>X.SubstructureNotifyMask</CODE> on either the old or the new parent and
to clients selecting <CODE>X.StructureNotifyMask</CODE> on the reparented
window.


<P>
<DL>
<DT><U>Instance Variable:</U> ReparentNotify <B>event</B>
<DD><A NAME="IDX91"></A>
The window the event is generated for.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ReparentNotify <B>window</B>
<DD><A NAME="IDX92"></A>
The reparented window.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ReparentNotify <B>parent</B>
<DD><A NAME="IDX93"></A>
The new parent window.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ReparentNotify <B>x</B>
<DD><A NAME="IDX94"></A>
<DT><U>Instance Variable:</U> ReparentNotify <B>y</B>
<DD><A NAME="IDX95"></A>
The coordinates of the upper-left outer corner of <CODE>window</CODE> in
<CODE>parent</CODE>. 
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ReparentNotify <B>override</B>
<DD><A NAME="IDX96"></A>
This is set from the corresponding attribute on <CODE>window</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>ConfigureNotify</B>
<DD><A NAME="IDX97"></A>


<P>
This event is generated when a configure request actually changes the
state of the window.


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureNotify <B>event</B>
<DD><A NAME="IDX98"></A>
The window that the event is generated for.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureNotify <B>window</B>
<DD><A NAME="IDX99"></A>
The window that has been changed.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureNotify <B>x</B>
<DD><A NAME="IDX100"></A>
<DT><U>Instance Variable:</U> ConfigureNotify <B>y</B>
<DD><A NAME="IDX101"></A>
<DT><U>Instance Variable:</U> ConfigureNotify <B>width</B>
<DD><A NAME="IDX102"></A>
<DT><U>Instance Variable:</U> ConfigureNotify <B>height</B>
<DD><A NAME="IDX103"></A>
<DT><U>Instance Variable:</U> ConfigureNotify <B>border_width</B>
<DD><A NAME="IDX104"></A>
The new coordinate and geometry of <CODE>window</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureNotify <B>above_sibling</B>
<DD><A NAME="IDX105"></A>
This is <CODE>X.NONE</CODE> if this window is at the bottom of the window
stack.  Otherwise it is the sibling window that <CODE>window</CODE> is
immediately above.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureNotify <B>override</B>
<DD><A NAME="IDX106"></A>
This is set from the corresponding attribute on <CODE>window</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>ConfigureRequest</B>
<DD><A NAME="IDX107"></A>


<P>
This event is reported to the client that has set
<CODE>X.SubstructureRedirectMask</CODE> on the parent of a window that another
client attempts to configure, unless the window has override-redirect
set.


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureRequest <B>parent</B>
<DD><A NAME="IDX108"></A>
The parent of the window being configured.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureRequest <B>window</B>
<DD><A NAME="IDX109"></A>
The window being configured.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureRequest <B>value_mask</B>
<DD><A NAME="IDX110"></A>
A bitmask indicating which values that the caller tries to change.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureRequest <B>x</B>
<DD><A NAME="IDX111"></A>
<DT><U>Instance Variable:</U> ConfigureRequest <B>y</B>
<DD><A NAME="IDX112"></A>
<DT><U>Instance Variable:</U> ConfigureRequest <B>width</B>
<DD><A NAME="IDX113"></A>
<DT><U>Instance Variable:</U> ConfigureRequest <B>height</B>
<DD><A NAME="IDX114"></A>
<DT><U>Instance Variable:</U> ConfigureRequest <B>border_width</B>
<DD><A NAME="IDX115"></A>
The window geometry in the configure call.  If <CODE>X.CWX</CODE>,
<CODE>X.CWY</CODE>, <CODE>X.CWWidth</CODE>, <CODE>X.CWHeight</CODE>, or
<CODE>X.CWBorderWidth</CODE> is set in <CODE>value_mask</CODE>, the corresponding
attributes contains the new value as given in the configure call,
otherwise the current value is used.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureRequest <B>stack_mode</B>
<DD><A NAME="IDX116"></A>
If <CODE>X.CWStackMode</CODE> is set in <CODE>value_mask</CODE>, this is the stack
mode specified in the configure call, one of <CODE>X.Above</CODE>,
<CODE>X.Below</CODE>, <CODE>X.TopIf</CODE>, <CODE>X.BottomIf</CODE>, or
<CODE>X.Opposite</CODE>.  If the flag is not set, this is set to
<CODE>X.Above</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ConfigureRequest <B>sibling</B>
<DD><A NAME="IDX117"></A>
If <CODE>X.CWSibling</CODE> is set in <CODE>value_mask</CODE>, this is the sibling
window specified in the configure call.  If the flag is not set, this is
set to <CODE>X.NONE</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>GravityNotify</B>
<DD><A NAME="IDX118"></A>


<P>
This event is generated when a window is moved because its parent's size
has changed.


<P>
<DL>
<DT><U>Instance Variable:</U> GravityNotify <B>event</B>
<DD><A NAME="IDX119"></A>
The window the event is generated for.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> GravityNotify <B>window</B>
<DD><A NAME="IDX120"></A>
The window that moved.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> GravityNotify <B>x</B>
<DD><A NAME="IDX121"></A>
<DT><U>Instance Variable:</U> GravityNotify <B>y</B>
<DD><A NAME="IDX122"></A>
The new coordinates of the upper-left outer corner of <CODE>window</CODE>.
</DL>


</DL>

<P>
    
<DL>
<DT><U>Event:</U> <B>ResizeRequest</B>
<DD><A NAME="IDX123"></A>


<P>
This is reported to the client selecting <CODE>X.ResizeRedirectMask</CODE> on
a window, and another client attempts to resize it. 


<P>
<DL>
<DT><U>Instance Variable:</U> ResizeRedirect <B>window</B>
<DD><A NAME="IDX124"></A>
The window that was attempted to be resized.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ResizeRedirect <B>width</B>
<DD><A NAME="IDX125"></A>
<DT><U>Instance Variable:</U> ResizeRedirect <B>height</B>
<DD><A NAME="IDX126"></A>
The requested size of the window, excluding the border.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>CirculateNotify</B>
<DD><A NAME="IDX127"></A>


<P>
This event is generated when a window is restacked caused by a circulate
call.


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>event</B>
<DD><A NAME="IDX128"></A>
The window the event is reported on.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>window</B>
<DD><A NAME="IDX129"></A>
The window that has been restacked.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>place</B>
<DD><A NAME="IDX130"></A>
Either <CODE>X.PlaceOnTop</CODE> or <CODE>X.PlaceOnBottom</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>CirculateRequest</B>
<DD><A NAME="IDX131"></A>


<P>
This event is reported to the client that has set
<CODE>X.SubstructureRedirectMask</CODE> on the parent of a window that needs
to be restacked as a result of a circulate call on the parent.


<P>
<DL>
<DT><U>Instance Variable:</U> CirculateRequest <B>parent</B>
<DD><A NAME="IDX132"></A>
The parent window.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> CirculateRequest <B>window</B>
<DD><A NAME="IDX133"></A>
The window that should be restacked.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> CirculateRequest <B>place</B>
<DD><A NAME="IDX134"></A>
Where <CODE>window</CODE> should be placed, either <CODE>X.PlaceOnTop</CODE> or
<CODE>X.PlaceOnBottom</CODE>. 
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>PropertyNotify</B>
<DD><A NAME="IDX135"></A>


<P>
This event is generated when a property on a window is changed.


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>window</B>
<DD><A NAME="IDX136"></A>
The window which the property is or was set on.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>atom</B>
<DD><A NAME="IDX137"></A>
The atom identifying the property.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>time</B>
<DD><A NAME="IDX138"></A>
The server X time when the property was changed.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> Event <B>state</B>
<DD><A NAME="IDX139"></A>
What was changed, either <CODE>X.PropertyNewValue</CODE> or
<CODE>X.PropertyDelete</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>SelectionClear</B>
<DD><A NAME="IDX140"></A>


<P>
This event is reported to the owner of a selection when it has gotten a
new owner.


<P>
<DL>
<DT><U>Instance Variable:</U> SelectionClear <B>window</B>
<DD><A NAME="IDX141"></A>
The owner window of the selection.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> SelectionClear <B>atom</B>
<DD><A NAME="IDX142"></A>
The selection atom.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> SelectionClear <B>time</B>
<DD><A NAME="IDX143"></A>
The server X time when the selection was last changed.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>SelectionRequest</B>
<DD><A NAME="IDX144"></A>


<P>
This event is reported to the owner of a selection when a client
requests it by calling convert_selection.


<P>
<DL>
<DT><U>Instance Variable:</U> SelectionRequest <B>owner</B>
<DD><A NAME="IDX145"></A>
The owner window of the selection.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> SelectionRequest <B>requestor</B>
<DD><A NAME="IDX146"></A>
<DT><U>Instance Variable:</U> SelectionRequest <B>selection</B>
<DD><A NAME="IDX147"></A>
<DT><U>Instance Variable:</U> SelectionRequest <B>target</B>
<DD><A NAME="IDX148"></A>
<DT><U>Instance Variable:</U> SelectionRequest <B>property</B>
<DD><A NAME="IDX149"></A>
<DT><U>Instance Variable:</U> SelectionRequest <B>time</B>
<DD><A NAME="IDX150"></A>
These attributes are fetched from the convert_selection call.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>SelectionNotify</B>
<DD><A NAME="IDX151"></A>


<P>
This event is generated by the server if there are no owner of a
selection when convert_selection is called.  If there is an owner, it
should send this event to the requestor when the selection has been
converted. 


<P>
<DL>
<DT><U>Instance Variable:</U> SelectionNotify <B>requestor</B>
<DD><A NAME="IDX152"></A>
<DT><U>Instance Variable:</U> SelectionNotify <B>selection</B>
<DD><A NAME="IDX153"></A>
<DT><U>Instance Variable:</U> SelectionNotify <B>target</B>
<DD><A NAME="IDX154"></A>
<DT><U>Instance Variable:</U> SelectionNotify <B>property</B>
<DD><A NAME="IDX155"></A>
<DT><U>Instance Variable:</U> SelectionNotify <B>time</B>
<DD><A NAME="IDX156"></A>
See XSelectionEvent(3X11).
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>ColormapNotify</B>
<DD><A NAME="IDX157"></A>


<P>
This event is generated when the colormap attribute of a window is set,
or when a window's colormap is installed or uninstalled.


<P>
<DL>
<DT><U>Instance Variable:</U> ColormapNotify <B>window</B>
<DD><A NAME="IDX158"></A>
The affected window.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ColormapNotify <B>colormap</B>
<DD><A NAME="IDX159"></A>
The colormap of the window, or <CODE>X.NONE</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ColormapNotify <B>new</B>
<DD><A NAME="IDX160"></A>
Set to 1 if the colormap attribute has been set, 0 when the
colormap is installed or uninstalled.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ColormapNotify <B>state</B>
<DD><A NAME="IDX161"></A>
Indicates whether the colormap is installed or not, either
<CODE>X.ColormapInstalled</CODE> or <CODE>X.ColormapUninstalled</CODE>.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>MappingNotify</B>
<DD><A NAME="IDX162"></A>


<P>
This event is sent to all clients, without any event mask having to be
set.  It is sent when the keyboard or pointer mapping is changed.


<P>
<DL>
<DT><U>Instance Variable:</U> MappingNotify <B>request</B>
<DD><A NAME="IDX163"></A>
The mapping that has changed, one of <CODE>X.MappingModifier</CODE>,
<CODE>X.MappingKeyboard</CODE> or <CODE>X.Pointer</CODE>.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> MappingNotify <B>first_keycode</B>
<DD><A NAME="IDX164"></A>
<DT><U>Instance Variable:</U> MappingNotify <B>count</B>
<DD><A NAME="IDX165"></A>
If the keyboard mapping has changed, this is the range of modified
keycodes.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>ClientMessage</B>
<DD><A NAME="IDX166"></A>


<P>
This event is only generated by clients using send_event.  


<P>
<DL>
<DT><U>Instance Variable:</U> ClientMessage <B>window</B>
<DD><A NAME="IDX167"></A>
The destination window of the event.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ClientMessage <B>client_type</B>
<DD><A NAME="IDX168"></A>
The type of message, an atom.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> ClientMessage <B>data</B>
<DD><A NAME="IDX169"></A>
The message data as a tuple: <CODE>(format, mdata)</CODE>


<P>
Format must be one of 8, 16, or 32.  mdata must either be a string of
exactly 20 characters, or a list of exactly 20, 10 or 5 integers
depending of the format.
</DL>


</DL>

<P>
<DL>
<DT><U>Event:</U> <B>AnyEvent</B>
<DD><A NAME="IDX170"></A>


<P>
This event is represents an event the Xlib does not recognise.  These
should never be returned by <CODE>Display.next_event()</CODE>, but they might
be useful for sending special events to other clients.


<P>
<DL>
<DT><U>Instance Variable:</U> AnyEvent <B>detail</B>
<DD><A NAME="IDX171"></A>
An eight-bit integer.
</DL>


<P>
<DL>
<DT><U>Instance Variable:</U> AnyEvent <B>data</B>
<DD><A NAME="IDX172"></A>
A string of exactly 28 characters.
</DL>


</DL>

<P><HR><P>
Go to the <A HREF="python-xlib_1.html">first</A>, <A HREF="python-xlib_12.html">previous</A>, <A HREF="python-xlib_14.html">next</A>, <A HREF="python-xlib_25.html">last</A> section, <A HREF="python-xlib_toc.html">table of contents</A>.
</BODY>
</HTML>