예제 #1
0
 def init_packet_handlers(self):
     XpraClientBase.init_packet_handlers(self)
     def noop(*args):
         log("ignoring packet: %s", args)
     #ignore the following packet types without error:
     for t in ["new-window", "new-override-redirect",
               "draw", "cursor", "bell",
               "notify_show", "notify_close",
               "ping", "ping_echo",
               "window-metadata", "configure-override-redirect",
               "lost-window"]:
         self._packet_handlers[t] = noop
예제 #2
0
    def init_packet_handlers(self):
        XpraClientBase.init_packet_handlers(self)

        def noop(*args):
            log("ignoring packet: %s", args)

        #ignore the following packet types without error:
        for t in [
                "new-window", "new-override-redirect", "draw", "cursor",
                "bell", "notify_show", "notify_close", "ping", "ping_echo",
                "window-metadata", "configure-override-redirect", "lost-window"
        ]:
            self._packet_handlers[t] = noop
예제 #3
0
 def init_packet_handlers(self):
     XpraClientBase.init_packet_handlers(self)
     def noop(*args):    # pragma: no cover
         log("ignoring packet: %s", args)
     #ignore the following packet types without error:
     #(newer servers should avoid sending us any of those)
     for t in (
         "new-window", "new-override-redirect",
         "draw", "cursor", "bell",
         "notify_show", "notify_close",
         "ping", "ping_echo",
         "window-metadata", "configure-override-redirect",
         "lost-window",
         ):
         self._packet_handlers[t] = noop