Here is an xtrace dump of focusing a xterm window and shading it by double clicking the title bar: 000:>:0263: Event (generated) ConfigureNotify(22) event=0x03200024 window=0x03200024 above-sibling=None(0x00000000) x=0 y=264 width=484 height=316 border-width=0 override-redirect=false(0x00) 000:>:0263: Event FocusIn(9) detail=Nonlinear(0x03) event=0x03200024 mode=Normal(0x00) 000:<:0264: 44: Request(25): SendEvent propagate=false(0x00) destination=0x00c0000c event-mask=0 ClientMessage(33) format=0x08 window=0x00c0000c type=0x1a5("_XIM_PROTOCOL") data=0x38,0x00,0x02,0x00,0x05,0x00,0x5d,0x00,0x02,0x00,0x4d,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00; 000:>:0264: Event PropertyNotify(28) window=0x03200024 atom=0x13b(unrecognized atom) time=0x6313df20 state=NewValue(0x00) 000:>:0264: Event (generated) ClientMessage(33) format=0x08 window=0x03200031 type=0x1a5("_XIM_PROTOCOL") data=0x39,0x00,0x04,0x00,0x05,0x00,0x5d,0x00,0x08,0x00,0x00,0x00,0x4d,0x01,0x04,0x00,0x03,0x00,0x00,0x00; 000:<:0265: 44: Request(25): SendEvent propagate=false(0x00) destination=0x00c0000c event-mask=0 ClientMessage(33) format=0x08 window=0x00c0000c type=0x1a5("_XIM_PROTOCOL") data=0x3a,0x00,0x01,0x00,0x05,0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00; 000:<:0266: 20: Request(77): ImageText16 drawable=0x0320002f gc=0x03200039 x=104 y=13 string=0x2000; 000:>:0266: Event PropertyNotify(28) window=0x03200024 atom=0x13b(unrecognized atom) time=0x6313e7d8 state=NewValue(0x00) 000:>:0266: Event UnmapNotify(18) event=0x03200024 window=0x03200024 from-configure=false(0x00) 000:>:0266: Event FocusOut(10) detail=Nonlinear(0x03) event=0x03200024 mode=Normal(0x00) 000:>:0266: Event PropertyNotify(28) window=0x03200024 atom=0x13b(unrecognized atom) time=0x6313e7d9 state=NewValue(0x00) 000:<:0267: 44: Request(25): SendEvent propagate=false(0x00) destination=0x00c0000c event-mask=0 ClientMessage(33) format=0x08 window=0x00c0000c type=0x1a5("_XIM_PROTOCOL") data=0x38,0x00,0x02,0x00,0x05,0x00,0x5d,0x00,0x02,0x00,0x4d,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00; 000:>:0267: Event PropertyNotify(28) window=0x03200024 atom=0x166(unrecognized atom) time=0x6313e7d9 state=NewValue(0x00) 000:>:0267: Event (generated) ClientMessage(33) format=0x08 window=0x03200031 type=0x1a5("_XIM_PROTOCOL") data=0x39,0x00,0x04,0x00,0x05,0x00,0x5d,0x00,0x08,0x00,0x00,0x00,0x4d,0x01,0x04,0x00,0x03,0x00,0x00,0x00; 000:<:0268: 44: Request(25): SendEvent propagate=false(0x00) destination=0x00c0000c event-mask=0 ClientMessage(33) format=0x08 window=0x00c0000c type=0x1a5("_XIM_PROTOCOL") data=0x3b,0x00,0x01,0x00,0x05,0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00; 000:<:0269: 20: Request(77): ImageText16 drawable=0x0320002f gc=0x0320002e x=104 y=13 string=0x2000; 000:<:026a: 32: Request(65): PolyLine coordinate-mode=Previous(0x01) drawable=0x0320002f gc=0x03200036 points={x=104 y=2},{x=5 y=0},{x=0 y=12},{x=-5 y=0},{x=0 y=-12}; 000:>:026a: Event (generated) ConfigureNotify(22) event=0x03200024 window=0x03200024 above-sibling=None(0x00000000) x=0 y=264 width=484 height=316 border-width=0 override-redirect=false(0x00) 000:>:026a: Event (generated) ConfigureNotify(22) event=0x03200024 window=0x03200024 above-sibling=None(0x00000000) x=0 y=236 width=484 height=316 border-width=0 override-redirect=false(0x00) 000:>:026a: Event PropertyNotify(28) window=0x03200024 atom=0x1da(unrecognized atom) time=0x6313e9f5 state=NewValue(0x00) 000:>:026a: Event PropertyNotify(28) window=0x03200024 atom=0x132(unrecognized atom) time=0x6313e9f5 state=NewValue(0x00) 000:>:026a: Event PropertyNotify(28) window=0x03200024 atom=0x13b(unrecognized atom) time=0x6313e9f7 state=NewValue(0x00) 000:>:026a: Event PropertyNotify(28) window=0x03200024 atom=0x1dd(unrecognized atom) time=0x6313eaef state=NewValue(0x00) 000:>:026a: Event PropertyNotify(28) window=0x03200024 atom=0x13b(unrecognized atom) time=0x6313f162 state=NewValue(0x00)