コード例 #1
0
 def __init__(self, root, capture):
     RootWindowModel.__init__(self, root, capture)
     log("SeamlessRootWindowModel(%s, %s) SEAMLESS=%s", root, capture,
         SEAMLESS)
     self.property_names.append("shape")
     self.dynamic_property_names.append("shape")
     self.rectangles = self.get_shape_rectangles(logit=True)
     self.shape_notify = []
コード例 #2
0
 def __init__(self, root):
     RootWindowModel.__init__(self, root)
     self.metrics = None
     self.ddc, self.cdc, self.memdc, self.bitmap = None, None, None, None
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
コード例 #3
0
ファイル: shadow_server.py プロジェクト: ljmljz/xpra
 def __init__(self, root):
     RootWindowModel.__init__(self, root)
     self.metrics = None
     self.ddc, self.cdc, self.memdc, self.bitmap = None, None, None, None
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
コード例 #4
0
 def __init__(self, root, pixel_depth=32):
     RootWindowModel.__init__(self, root)
     self.pixel_depth = pixel_depth
     self.capture = init_capture(pixel_depth)
     log("Win32RootWindowModel(%s, %i) capture=%s", root, pixel_depth,
         self.capture)
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
コード例 #5
0
ファイル: shadow_server.py プロジェクト: rudresh2319/Xpra
 def __init__(self, root):
     RootWindowModel.__init__(self, root)
     self.dc, self.memdc, self.bitmap = None, None, None
     self.bit_depth = 32
     self.bitblt_err_time = 0
     self.disabled_dwm_composition = DISABLE_DWM_COMPOSITION and set_dwm_composition(
         DWM_EC_DISABLECOMPOSITION)
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
コード例 #6
0
ファイル: shadow_server.py プロジェクト: TianyouLi/Xpra
 def __init__(self, root):
     RootWindowModel.__init__(self, root)
     self.metrics = None
     self.ddc, self.cdc, self.memdc, self.bitmap = None, None, None, None
     if DISABLE_DWM_COMPOSITION:
         try:
             from ctypes import windll
             DWM_EC_DISABLECOMPOSITION = 0
             windll.dwmapi.DwmEnableComposition(DWM_EC_DISABLECOMPOSITION)
         except Exception as e:
             log.error("Error: cannot disable composition:")
             log.error(" %s", e)
     if SEAMLESS:
         self.property_names.append("shape")
         self.dynamic_property_names.append("shape")
         self.rectangles = self.get_shape_rectangles(logit=True)
         self.shape_notify = []
コード例 #7
0
 def __init__(self, root_window, capture):
     RootWindowModel.__init__(self, root_window, capture)
     self.geometry = root_window.get_geometry()[:4]
コード例 #8
0
ファイル: shadow_server.py プロジェクト: rudresh2319/Xpra
 def __init__(self, root_window):
     RootWindowModel.__init__(self, root_window, OSXRootCapture())