+
    }c   c                   st   R t ^ RIHtH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]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 tR# )a  Xinerama - provide access to the Xinerama extension information.

There are at least there different - and mutually incomparable -
Xinerama extensions available. This uses the one bundled with XFree86
4.6 and/or Xorg 6.9 in the ati/radeon driver. It uses the include
files from that X distribution, so should work with it as well.  I
provide code for the lone Sun 1.0 request that isn't part of 1.1, but
this is untested because I don't have a server that implements it.

The functions loosely follow the libXineram functions. Mostly, they
return an rq.Struct in lieu of passing in pointers that get data from
the rq.Struct crammed into them. The exception is isActive, which
returns the state information - because that's what libXinerama does.)rqstructsZXINERAMAc                   s   ] tR t^+t]P
                  ! ]P                  ! R4      ]P                  ! ^ 4      ]P                  ! 4       ]P                  ! R4      ]P                  ! R4      ]P                  ! ^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Pad_request	ReplyCodeCard16ReplyLength_reply__static_attributes__r       6/usr/lib/python3.14/site-packages/Xlib/ext/xinerama.pyr   r   +   s    yy

		!

!
!
q	
H YYLLNFF1III'(NNIIo&IIo&FF2J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^Ft]P
                  ! ]P                  ! R4      ]P                  ! ^4      ]P                  ! 4       ]P                  ! R4      4      t
]P
                  ! ]P                  ! 4       ]P                  ! R4      ]P                  ! R4      ]P                  ! 4       ]P                  ! R4      ]P                  ! ^4      4      tRtR# )GetStater   windowstater   r   N)r   r	   r
   r   r    r   r   r   r   Windowr   r   ZBoolr   r   r   r   r   r   r   r   r    r    F   s    yy

		!

		(	
H YY


		#$

		(
r

Fr   r    c                     \        V P                  V P                  P                  \        4      V P                  R 7      # )r   r   r!   )r    r   r   r   idr   r   r   	get_stater'   V   s.    DLL<<;;GD77 r   c            
       s   ] tR t^]t]P
                  ! ]P                  ! R4      ]P                  ! ^4      ]P                  ! 4       ]P                  ! R4      4      t
]P
                  ! ]P                  ! 4       ]P                  ! R4      ]P                  ! R4      ]P                  ! 4       ]P                  ! R4      ]P                  ! ^4      4      tRtR# )GetScreenCountr   r!   Zscreen_countr   r   N)r   r	   r
   r   r    r   r   r   r   r#   r   r   r   r   r   r   r   r   r   r   r(   r(   ]   s    yy

		!

		(	
H YY

 
		#$

		(
r

Fr   r(   c                 r$   r%   )r(   r   r   r   r&   r   r   r   get_screen_countr)   m   s.    $,,!%!A!A'!J!% r   c                   s2   ] tR t^tt]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                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! ^4      4	      tRtR	# )
GetScreenSizer   r!   screenr   ZlengthZwidthZheightr   N)r   r	   r
   r   r    r   r   r   r   r#   Card32r   r   r   r   r   r   r   r   r   r*   r*   t   s    yy

		!

		(
		(
H YY

q	
		#$
		(
		'
		(
		(
		(
q	

Fr   r*   c                s    \        V P                  V P                  P                  \        4      V P                  VR7      # )z+Returns the size of the given screen number)r   r   r!   r+   )r*   r   r   r   r&   )r   Z	screen_no   &&r   get_screen_sizer.      s1     $ @ @ I $ ) 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                  ! ^4      4      tRtR# )IsActiver   r   r"   r   N)r   r	   r
   r   r    r   r   r   r   r   r   r   r   r   r,   r   r   r   r   r   r/   r/      s    yy

		!

H
 YY

q	
		#$

		'
r

Fr   r/   c                 s    \        V P                  V P                  P                  \        4      R 7      pVP                  # )r   r   )r/   r   r   r   r"   )r   rs   & r   	is_activer2      s/    88A	A 77Nr   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                  ! ^4      ]P                  ! R]P"                  4      4      tRtR# )QueryScreensr   r   ZnumberZscreensr   N)r   r	   r
   r   r    r   r   r   r   r   r   r   r   r   r,   ZListr   Z	Rectangler   r   r   r   r   r3   r3      s    yy

		!

H
 YY

q	
		#$

		(
r

	7,,-
Fr   r3   c                 sj    \        V P                  V P                  P                  \        4      R 7      # r0   )r3   r   r   r   r   r   r   query_screensr4      s'    #||??H r   c            	       s   ] tR t^t]P
                  ! ]P                  ! R4      ]P                  ! ^4      ]P                  ! 4       ]P                  ! R4      4      t
]P
                  ! ]P                  ! 4       ]P                  ! ^4      ]P                  ! R4      ]P                  ! 4       ]P                  ! R4      4      tRtR# )GetInfor   visualr   r!   r   N)r   r	   r
   r   r    r   r   r   r   r,   r   r   r   r   r   r#   r   r   r   r   r   r5   r5      s    yy

		!

		(	
H YY

q	
		#$

		(
Fr   r5   c                 sp    \        V P                  V P                  P                  \        4      VR 7      pR# ))r   r   r6   N)r5   r   r   r   )r   r6   r1   s   && r   get_infor7      s'    LL44W=	Ar   c                 sH   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                  R R\        4       R	# )
r   Zxinerama_query_versionr!   Zxinerama_get_stateZxinerama_get_screen_countZxinerama_get_screen_sizeZxinerama_is_activeZxinerama_query_screensZxinerama_get_infoN)Zextension_add_methodr   r'   r)   r.   r2   r4   r7   )ZdispZinfor-   r   initr8      s    i)A=Qh(<iHh(CEUVh(BOTi)=yIi)A=Qi)<hGr   N)Z__doc__ZXlib.protocolr    r   r   ZReplyRequestr   r   r    r'   r(   r)   r*   r.   r/   r2   r3   r4   r5   r7   r8   r   r   r   <module>r9      s   .I &
2?? ()
r 
 
R__ 
 
BOO 
(
r 

2?? 
 
boo 
 
Hr   