Example #1
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     self.keycodes = {}
     from xpra.net.bytestreams import set_continue_wait
     #on win32, we want to wait just a little while,
     #to prevent servers spinning wildly on non-blocking sockets:
     set_continue_wait(5)
Example #2
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     self.keycodes = {}
     self.cursor_handle = None
     self.cursor_data = None
     if GetSystemMetrics(win32con.SM_SAMEDISPLAYFORMAT) == 0:
         raise InitException(
             "all the monitors must use the same display format")
     el = get_win32_event_listener()
     from xpra.net.bytestreams import set_continue_wait
     #on win32, we want to wait just a little while,
     #to prevent servers spinning wildly on non-blocking sockets:
     set_continue_wait(5)
     #TODO: deal with those messages?
     el.add_event_callback(win32con.WM_POWERBROADCAST,
                           self.power_broadcast_event)
     #el.add_event_callback(WM_WTSSESSION_CHANGE,         self.session_change_event)
     #these are bound to callbacks in the client,
     #but on the server we just ignore them:
     el.ignore_events.update({
         win32con.WM_ACTIVATEAPP: "WM_ACTIVATEAPP",
         win32con.WM_MOVE: "WM_MOVE",
         win32con.WM_INPUTLANGCHANGE: "WM_INPUTLANGCHANGE",
         win32con.WM_WININICHANGE: "WM_WININICHANGE",
     })
     #non-blocking server sockets (TCP and named pipes):
     from xpra.net.bytestreams import CONTINUE_ERRNO
     import errno
     CONTINUE_ERRNO[
         errno.WSAEWOULDBLOCK] = "WSAEWOULDBLOCK"  #@UndefinedVariable
Example #3
0
 def __init__(self):
     #sanity check:
     image = CG.CGWindowListCreateImage(CG.CGRectInfinite,
                 CG.kCGWindowListOptionOnScreenOnly,
                 CG.kCGNullWindowID,
                 CG.kCGWindowImageDefault)
     if image is None:
         from xpra.scripts.config import InitExit
         log("cannot grab test screenshot - maybe you need to run this command whilst logged in via the UI")
         raise InitExit(1, "cannot grab pixels from the screen, make sure this command is launched from a GUI session")
     self.refresh_count = 0
     self.refresh_rectangle_count = 0
     self.refresh_registered = False
     GTKShadowServerBase.__init__(self)
Example #4
0
 def __init__(self):
     #sanity check:
     image = CG.CGWindowListCreateImage(CG.CGRectInfinite,
                 CG.kCGWindowListOptionOnScreenOnly,
                 CG.kCGNullWindowID,
                 CG.kCGWindowImageDefault)
     if image is None:
         from xpra.scripts.config import InitExit
         log("cannot grab test screenshot - maybe you need to run this command whilst logged in via the UI")
         raise InitExit(1, "cannot grab pixels from the screen, make sure this command is launched from a GUI session")
     patch_picture_encode()
     self.refresh_count = 0
     self.refresh_rectangle_count = 0
     self.refresh_registered = False
     GTKShadowServerBase.__init__(self)
Example #5
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     self.keycodes = {}
     el = get_win32_event_listener()
     from xpra.net.bytestreams import set_continue_wait
     #on win32, we want to wait just a little while,
     #to prevent servers spinning wildly on non-blocking sockets:
     set_continue_wait(5)
     #TODO: deal with those messages?
     #el.add_event_callback(win32con.WM_POWERBROADCAST,   self.power_broadcast_event)
     #el.add_event_callback(WM_WTSSESSION_CHANGE,         self.session_change_event)
     #these are bound to callbacks in the client,
     #but on the server we just ignore them:
     el.ignore_events.update({
         win32con.WM_ACTIVATEAPP: "WM_ACTIVATEAPP",
         win32con.WM_MOVE: "WM_MOVE",
         win32con.WM_INPUTLANGCHANGE: "WM_INPUTLANGCHANGE",
         win32con.WM_WININICHANGE: "WM_WININICHANGE",
     })
Example #6
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     self.keycodes = {}
     self.cursor_handle = None
     self.cursor_data = None
     self.cursor_errors = [0, 0]
     if GetSystemMetrics(win32con.SM_SAMEDISPLAYFORMAT) == 0:
         raise InitException(
             "all the monitors must use the same display format")
     el = get_win32_event_listener()
     #TODO: deal with those messages?
     el.add_event_callback(win32con.WM_POWERBROADCAST,
                           self.power_broadcast_event)
     #el.add_event_callback(WM_WTSSESSION_CHANGE,         self.session_change_event)
     #these are bound to callbacks in the client,
     #but on the server we just ignore them:
     el.ignore_events.update({
         win32con.WM_ACTIVATEAPP: "WM_ACTIVATEAPP",
         win32con.WM_MOVE: "WM_MOVE",
         win32con.WM_INPUTLANGCHANGE: "WM_INPUTLANGCHANGE",
         win32con.WM_WININICHANGE: "WM_WININICHANGE",
     })
Example #7
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     X11ServerBase.__init__(self, False)
Example #8
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     X11ServerCore.__init__(self)
     self.session_type = "shadow"
Example #9
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     X11ServerBase.__init__(self)
Example #10
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     X11ServerCore.__init__(self)
     self.session_type = "shadow"
     self.cursor_poll_timer = None
Example #11
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     X11ServerCore.__init__(self)
     self.cursor_poll_timer = None
Example #12
0
 def __init__(self):
     GTKShadowServerBase.__init__(self)
     self.keycodes = {}