Ë
    J9Öc1  ã                   óü  — d Z ddlmZ dZdZdZdZdZdZdZ	dZ
dZdZdZ G d„ dej                  «      Zd	„ Z G d
„ dej"                  «      Zd„ Z G d„ dej"                  «      Zd„ Z G d„ dej"                  «      Zd„ Z G d„ dej0                  «      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ dej"                  «      Zd„ Z G d„ dej                  «      Zd „ Z  G d!„ d"ej0                  «      Z!d#„ Z"y$)%z‰
A partial implementation of the XFIXES extension.  Only the HideCursor and
ShowCursor requests and SelectionNotify events are provided.
é    )ÚrqÚXFIXESé   é   é   c                   óâ  — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«      «      Z	 ej                   ej                  «        ej                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«       ej                  d«      «      Zy)	ÚQueryVersionÚopcoder   Úmajor_versionÚminor_versionr   Úsequence_numberé   N)Ú__name__Ú
__module__Ú__qualname__r   ÚStructÚCard8ÚOpcodeÚRequestLengthÚCard32Ú_requestÚ	ReplyCodeÚPadÚCard16ÚReplyLengthÚ_reply© ó    ú1/usr/lib/python3/dist-packages/Xlib/ext/xfixes.pyr	   r	   -   sÃ   „ Øˆr�y‰y˜˜Ÿ™ (Ó+Ø"˜Ÿ™ 1›Ø)˜×)Ñ)Ó+Ø"˜Ÿ™ ?Ó3Ø"˜Ÿ™ ?Ó3ó	€Hð ˆR�Y‰Y�|�r—|‘|“~Ø�r—v‘v˜a“yØ �r—y‘yÐ!2Ó3Ø%�r—~‘~Ó'Ø �r—y‘y Ó1Ø �r—y‘y Ó1Ø�r—v‘v˜b“zó�Fr   r	   c                 ón   — t        | j                  | j                  j                  t        «      dd¬«      S )Nr   r   )Údisplayr
   r   r   )r	   r!   Úget_extension_majorÚextname©Úselfs    r   Úquery_versionr&   >   s-   € Ü §¡Ø#Ÿ|™|×?Ñ?ÄÓHØ&'Ø&'ô)ð )r   c                   ó´   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«      «      Z	y)Ú
HideCursorr
   é   ÚwindowN©
r   r   r   r   r   r   r   r   ÚWindowr   r   r   r   r(   r(   E   óH   „ Øˆr�y‰y˜˜Ÿ™ (Ó+Ø"˜Ÿ™ 2›Ø)˜×)Ñ)Ó+Ø"˜Ÿ™ 8Ó,ó�Hr   r(   c                 ón   — t        | j                  | j                  j                  t        «      | ¬«       y ©N)r!   r
   r*   )r(   r!   r"   r#   r$   s    r   Úhide_cursorr0   L   ó%   € Ü�t—|‘|Ø—l‘l×6Ñ6´wÓ?Øör   c                   ó´   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«      «      Z	y)Ú
ShowCursorr
   é   r*   Nr+   r   r   r   r3   r3   R   r-   r   r3   c                 ón   — t        | j                  | j                  j                  t        «      | ¬«       y r/   )r3   r!   r"   r#   r$   s    r   Úshow_cursorr6   Z   r1   r   c            
       óø   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«       ej                  d«      «      Z
y)ÚSelectSelectionInputr
   r   r*   Ú	selectionÚmaskN©r   r   r   r   r   r   r   r   r,   r   r   r   r   r   r8   r8   _   sd   „ Øˆr�y‰y˜˜Ÿ™ (Ó+Ø"˜Ÿ™ 1›Ø)˜×)Ñ)Ó+Ø"˜Ÿ™ 8Ó,Ø"˜Ÿ™ ;Ó/Ø"˜Ÿ™ 6Ó*ó�Hr   r8   c                 óp   — t        | j                  j                  t        «      | j                  |||¬«      S )N)r
   r!   r*   r9   r:   )r8   r!   r"   r#   )r%   r*   r9   r:   s       r   Úselect_selection_inputr=   h   s0   € Ü t§|¡|×'GÑ'GÌÓ'PØ(,¯©Ø'-Ø*3Ø%)ô	+ð +r   c                   ód  — e Zd ZdZ ej
                   ej                  d«       ej                  d«       ej                  d«       ej                  d«       ej                  d«       ej                  d«       ej                  d«       ej                  d	«       ej                  d
«      «	      Zy)ÚSelectionNotifyNÚtypeÚsub_coder   r*   Úownerr9   Ú	timestampÚselection_timestampé   )r   r   r   Ú_coder   r   r   r   r,   r   r   Ú_fieldsr   r   r   r?   r?   p   s•   „ Ø€EØˆb�i‰i˜˜Ÿ™ Ó(Ø ˜Ÿ™ Ó,Ø!˜Ÿ	™	Ð"3Ó4Ø!˜Ÿ	™	 (Ó+Ø!˜Ÿ	™	 'Ó*Ø!˜Ÿ	™	 +Ó.Ø!˜Ÿ	™	 +Ó.Ø!˜Ÿ	™	Ð"7Ó8Ø˜Ÿ™˜q›	ó#�Gr   r?   c                   ó   — e Zd Zy)ÚSetSelectionOwnerNotifyN©r   r   r   r   r   r   rI   rI   }   ó   „ Ør   rI   c                   ó   — e Zd Zy)ÚSelectionWindowDestroyNotifyNrJ   r   r   r   rM   rM   �   rK   r   rM   c                   ó   — e Zd Zy)ÚSelectionClientCloseNotifyNrJ   r   r   r   rO   rO   …   rK   r   rO   c            	       óÖ   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«      «      Z
y)ÚSelectCursorInputr
   é   r*   r:   Nr;   r   r   r   rQ   rQ   ‰   sV   „ Øˆr�y‰y˜˜Ÿ™ (Ó+Ø"˜Ÿ™ 1›Ø)˜×)Ñ)Ó+Ø"˜Ÿ™ 8Ó,Ø"˜Ÿ™ 6Ó*ó	�Hr   rQ   c                 óp   — t        | j                  j                  t        «      | j                  |d|¬«      S )Nr   )r
   r!   r*   Úcursor_serialr:   )rQ   r!   r"   r#   )r%   r*   r:   s      r   Úselect_cursor_inputrU   ‘   s0   € Ü D§L¡L×$DÑ$DÄWÓ$MØ%)§\¡\Ø$*Ø+,Ø"&ô	(ð (r   c                   ó€  — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «       «      Z ej                   ej                  «        ej                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«       ej                  d«       ej                  d«       ej                  d	«       ej                  d
«       ej                  d«       ej                  d«       ej                  dej                  «      «      Zy)ÚGetCursorImager
   r   r   r   ÚxÚyÚwidthÚheightÚxhotÚyhotrT   rE   Úcursor_imageN)r   r   r   r   r   r   r   r   r   r   r   r   r   ÚInt16r   ÚListr   r   r   r   rW   rW   ™   sÿ   „ Øˆr�y‰y˜˜Ÿ™ (Ó+Ø"˜Ÿ™ 1›Ø)˜×)Ñ)Ó+ó€Hð ˆR�Y‰Y�|�r—|‘|“~Ø�r—v‘v˜a“yØ �r—y‘yÐ!2Ó3Ø%�r—~‘~Ó'Ø�r—x‘x “}Ø�r—x‘x “}Ø �r—y‘y Ó)Ø �r—y‘y Ó*Ø �r—y‘y Ó(Ø �r—y‘y Ó(Ø �r—y‘y Ó1Ø�r—v‘v˜a“yØ�r—w‘w˜~¨r¯y©yÓ9ó�Fr   rW   c                 ój   — t        | j                  j                  t        «      | j                  ¬«      S )N)r
   r!   )rW   r!   r"   r#   )r%   r*   s     r   Úget_cursor_imagerb   ­   s'   € Ü §¡×!AÑ!AÄ'Ó!JØ"&§,¡,ôð r   c            
       óþ   — e Zd ZdZ ej
                   ej                  d«       ej                  d«       ej                  d«       ej                  d«       ej                  d«       ej                  d«      «      Z
y)ÚDisplayCursorNotifyNr@   rA   r   r*   rT   rC   )r   r   r   rF   r   r   r   r   r,   r   rG   r   r   r   rd   rd   ³   sk   „ Ø€EØˆb�i‰i˜˜Ÿ™ Ó(Ø ˜Ÿ™ Ó,Ø!˜Ÿ	™	Ð"3Ó4Ø!˜Ÿ	™	 (Ó+Ø!˜Ÿ	™	 /Ó2Ø!˜Ÿ	™	 +Ó.ó0�Gr   rd   c                 óx  — | j                  ddt        «       | j                  ddt        «       | j                  ddt        «       | j                  ddt        «       | j                  ddt
        «       | j                  ddt        «       | j                  |j                  t        z   t        t        «       | j                  |j                  t        z   t        t        «       | j                  |j                  t        z   t        t        «       | j                  |j                  t         z   t"        t$        «       y )	Nr!   Úxfixes_select_selection_inputÚxfixes_query_versionr*   Úxfixes_hide_cursorÚxfixes_show_cursorÚxfixes_select_cursor_inputÚxfixes_get_cursor_image)Úextension_add_methodr=   r&   r0   r6   rU   rb   Úextension_add_subeventÚfirst_eventÚXFixesSelectionNotifyÚXFixesSetSelectionOwnerNotifyrI   Ú"XFixesSelectionWindowDestroyNotifyrM   Ú XFixesSelectionClientCloseNotifyrO   ÚXFixesCursorNotifyÚXFixesDisplayCursorNotifyrd   )ÚdispÚinfos     r   Úinitrw   ½   s  € Ø×Ñ˜iÐ)HÔJ`ÔaØ×Ñ˜iÐ)?ÄÔOØ×Ñ˜hÐ(<¼kÔJØ×Ñ˜hÐ(<¼kÔJØ×Ñ˜iÐ)EÔGZÔ[Ø×Ñ˜iÐ)BÔDTÔUà×Ñ × 0Ñ 0Ô3HÑ HÔJgô  jAô  BØ×Ñ × 0Ñ 0Ô3HÑ HÔJlô  oKô  LØ×Ñ × 0Ñ 0Ô3HÑ HÔJjô  mGô  HØ×Ñ × 0Ñ 0Ô3EÑ EÔG`ÔbuÕvr   N)#Ú__doc__ÚXlib.protocolr   r#   ro   rs   Ú!XFixesSetSelectionOwnerNotifyMaskÚ&XFixesSelectionWindowDestroyNotifyMaskÚ$XFixesSelectionClientCloseNotifyMaskÚXFixesDisplayCursorNotifyMaskrp   rq   rr   rt   ÚReplyRequestr	   r&   ÚRequestr(   r0   r3   r6   r8   r=   ÚEventr?   rI   rM   rO   rQ   rU   rW   rb   rd   rw   r   r   r   ú<module>r�      s  ðñ.õ
 à
€à*+Ð Ø*+Ð à+1Ð !Ø+1Ð &Ø+1Ð $Ø+1Ð à*+Ð Ø*+Ð "Ø*+Ð  Ø*+Ð ô�2—?‘?ô ò")ô�—‘ô òô�—‘ô òô
˜2Ÿ:™:ô ò+ô
#�b—h‘hô 
#ô	˜oô 	ô	 ?ô 	ô	 ô 	ô˜Ÿ
™
ô ò(ô�R—_‘_ô ò(ô0˜"Ÿ(™(ô 0ówr   