+
    }c1  c                   s   R t ^ RIHt Rt^ t^t^t^t^t^t	^ t
^t^t^ t ! R R]P                  4      tR t ! R R]P"                  4      tR t ! R	 R
]P"                  4      tR t ! R R]P"                  4      tR t ! R R]P0                  4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]P"                  4      tR t ! R R]P                  4      tR t  ! R R]P0                  4      t!R t"R # )!z
A partial implementation of the XFIXES extension.  Only the HideCursor and
ShowCursor requests and SelectionNotify events are provided.
)rqZXFIXESc                   s   ] tR t^-t]P
                  ! ]P                  ! R4      ]P                  ! ^ 4      ]P                  ! 4       ]P                  ! R4      ]P                  ! R4      4      t
]P
                  ! ]P                  ! 4       ]P                  ! ^4      ]P                  ! R4      ]P                  ! 4       ]P                  ! R4      ]P                  ! R4      ]P                  ! ^4      4      tRtR# )QueryVersionopcodemajor_versionminor_versionsequence_number N)__name__
__module____qualname____firstlineno__r    StructCard8OpcodeRequestLengthCard32_request	ReplyCodePadCard16ReplyLength_reply__static_attributes__r       4/usr/lib/python3.14/site-packages/Xlib/ext/xfixes.pyr   r   -   s    yy(+1))+?3?3	H YYr||~vvayyy!23~~'yy1yy1vvbzFr   r   c                 sn    \        V P                  V P                  P                  \        4      ^^ R7      # )i   )displayr   r   r   )r   r   get_extension_majorextnameself   &r   query_versionr   >   s-    #||??H&'&') )r   c                   s    ] tR t^Et]P
                  ! ]P                  ! R4      ]P                  ! ^4      ]P                  ! 4       ]P                  ! R4      4      t
RtR# )
HideCursorr   windowr   Nr   r   r	   r
   r    r   r   r   r   Windowr   r   r   r   r   r    r    E   >    yy(+2))+8,Hr   r    c                 p    \        V P                  V P                  P                  \        4      V R 7       R# )r   r   r!   N)r    r   r   r   r   r   r   hide_cursorr'   L   %    t||ll66w?r   c                   s    ] tR t^Rt]P
                  ! ]P                  ! R4      ]P                  ! ^4      ]P                  ! 4       ]P                  ! R4      4      t
RtR# )
ShowCursorr   r!   r   Nr"   r   r   r   r)   r)   R   r$   r   r)   c                 r%   r&   )r)   r   r   r   r   r   r   show_cursorr*   Z   r(   r   c            
       s   ] tR t^_t]P
                  ! ]P                  ! R4      ]P                  ! ^4      ]P                  ! 4       ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      4      tRtR# )SelectSelectionInputr   r!   	selectionmaskr   Nr   r   r	   r
   r    r   r   r   r   r#   r   r   r   r   r   r   r+   r+   _   sV    yy(+1))+8,;/6*Hr   r+   c                 sp    \        V P                  P                  \        4      V P                  VVVR 7      # ))r   r   r!   r,   r-   )r+   r   r   r   )r   r!   r,   r-   s   &&&&r   select_selection_inputr/   h   s0    t||'G'G'P(,'-*3%)	+ +r   c                   sn   ] tR t^ptRt]P                  ! ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R	4      ]P                  ! ^4      4	      tR
tR# )SelectionNotifyNtypesub_coder   r!   Zownerr,   	timestampZselection_timestampr   )r   r   r	   r
   _coder    r   r   r   r#   r   r   _fieldsr   r   r   r   r0   r0   p   s    Eii(,		"34		(+		'*		+.		+.		"78q	#Gr   r0   c                   s    ] tR t^}tRtR# )SetSelectionOwnerNotifyr   Nr   r   r	   r
   r   r   r   r   r6   r6   }       r   r6   c                   s    ] tR t^tRtR# )SelectionWindowDestroyNotifyr   Nr7   r   r   r   r9   r9      r8   r   r9   c                   s    ] tR t^tRtR# )SelectionClientCloseNotifyr   Nr7   r   r   r   r:   r:      r8   r   r:   c            	       s    ] tR t^t]P
                  ! ]P                  ! R4      ]P                  ! ^4      ]P                  ! 4       ]P                  ! R4      ]P                  ! R4      4      tRtR# )SelectCursorInputr   r!   r-   r   Nr.   r   r   r   r;   r;      sJ    yy(+1))+8,6*	Hr   r;   c                 sp    \        V P                  P                  \        4      V P                  V^ VR7      # )i    )r   r   r!   cursor_serialr-   )r;   r   r   r   )r   r!   r-   s   &&&r   select_cursor_inputr=      s0    DLL$D$DW$M%)\\$*+,"&	( (r   c                   s   ] tR t^t]P
                  ! ]P                  ! R4      ]P                  ! ^4      ]P                  ! 4       4      t	]P
                  ! ]P                  ! 4       ]P                  ! ^4      ]P                  ! R4      ]P                  ! 4       ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R	4      ]P                  ! ^4      ]P                   ! R
]P                  4      4      tRtR# )GetCursorImager   r   ZxZyZwidthZheightZxhotZyhotr<   Zcursor_imager   N)r   r   r	   r
   r    r   r   r   r   r   r   r   r   r   ZInt16r   ZListr   r   r   r   r   r>   r>      s    yy(+1))+H YYr||~vvayyy!23~~'xx}xx}yy)yy*yy(yy(yy1vvayww~ryy9Fr   r>   c                 sj    \        V P                  P                  \        4      V P                  R 7      # ))r   r   )r>   r   r   r   )r   r!      &&r   get_cursor_imager@      s'    !A!A'!J"&,, r   c            
       s   ] tR t^tRt]P                  ! ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      4      tRtR# )	DisplayCursorNotifyNr1   r2   r   r!   r<   r3   r   )r   r   r	   r
   r4   r    r   r   r   r#   r   r5   r   r   r   r   rA   rA      s]    Eii(,		"34		(+		/2		+.0Gr   rA   c                 s   V P                  R R\        4       V P                  R R\        4       V P                  RR\        4       V P                  RR\        4       V P                  R R\
        4       V P                  R R\        4       V P                  VP                  \        ,           \        \        4       V P                  VP                  \        ,           \        \        4       V P                  VP                  \        ,           \        \        4       V P                  VP                  \         ,           \"        \$        4       R# )	r   Zxfixes_select_selection_inputZxfixes_query_versionr!   Zxfixes_hide_cursorZxfixes_show_cursorZxfixes_select_cursor_inputZxfixes_get_cursor_imageN)Zextension_add_methodr/   r   r'   r*   r=   r@   Zextension_add_subeventZfirst_eventXFixesSelectionNotifyXFixesSetSelectionOwnerNotifyr6   "XFixesSelectionWindowDestroyNotifyr9    XFixesSelectionClientCloseNotifyr:   XFixesCursorNotifyXFixesDisplayCursorNotifyrA   )ZdispZinfor?   r   initrH      s   i)HJ`ai)?Oh(<kJh(<kJi)EGZ[i)BDTU 0 03H HJg  jA  B 0 03H HJl  oK  L 0 03H HJj  mG  H 0 03E EG`buvr   N)#Z__doc__ZXlib.protocolr    r   rB   rF   Z!XFixesSetSelectionOwnerNotifyMaskZ&XFixesSelectionWindowDestroyNotifyMaskZ$XFixesSelectionClientCloseNotifyMaskZXFixesDisplayCursorNotifyMaskrC   rD   rE   rG   ZReplyRequestr   r   ZRequestr    r'   r)   r*   r+   r/   ZEventr0   r6   r9   r:   r;   r=   r>   r@   rA   rH   r   r   r   <module>rI      s  .
 
*+ *+ +1 !+1 &+1 $+1 *+ *+ "*+  *+ 2?? ")  
2:: +
#bhh 
#	o 		? 		 	

 (R__ (0"(( 0wr   