
    *fc                     V    d dl Z d dlmZ  e j                  e      ZdZ G d de      Zy)    N)AbstractDisplayXephyrc                   4    e Zd ZdZdddddg ddfd	Zd
 Zd Zy)XephyrDisplayzf
    Xephyr wrapper

    Xephyr is an X server outputting to a window on a pre-existing X display
    )i   i      blackF
   TNc	                 z    || _         || _        || _        || _        t	        j
                  | t        ||||       y)z4
        :param bgcolor: 'black' or 'white'
        )	use_xauthretries
extra_argsmanage_global_envN)_color_depth_size_bgcolor_parentr   __init__PROGRAM)	selfsizecolor_depthbgcolorr   r   r   r   parents	            T/var/www/html/flask-app/venv/lib/python3.12/site-packages/pyvirtualdisplay/xephyr.pyr   zXephyrDisplay.__init__   sA     (
  !/	
    c                     d|v | _         y )N-resizeable)_has_resizeable)r   helptexts     r   _check_flagszXephyrDisplay._check_flags-   s    ,8r   c                    t         g| j                  rd| j                  gng z   t        dd      | j                     ddj	                  t        t        t        | j                        | j                  gz               gz   }| j                  r|dt        | j                        gz  }n|| j                  gz  }| j                  r|dgz  }|S )	Nz-parentz-brz-wr)r   whitez-screenxz
-displayfdr   )r   r   dictr   joinmapstrlistr   r   _has_displayfd	_pipe_wfdnew_display_varr   )r   cmds     r   _cmdzXephyrDisplay._cmd0   s      -1LL	4<<(bB
 5.t}}=S$tzz"2d6G6G5H"HIJ	 	 L#dnn"566CD(())CM?"C
r   )__name__
__module____qualname____doc__r   r    r-    r   r   r   r   
   s0     
89r   r   )logging pyvirtualdisplay.abstractdisplayr   	getLoggerr.   logr   r   r2   r   r   <module>r7      s.     <g!
9O 9r   