Example #1
0
 def do_cleanup(self):
     self.cancel_resize_timer()
     X11ServerBase.do_cleanup(self)
     remove_catchall_receiver("xpra-motion-event", self)
     cleanup_x11_filter()
     with xswallow:
         cleanup_all_event_receivers()
Example #2
0
 def cleanup(self):
     #this must be called from the UI thread!
     remove_event_receiver(self._root, self)
     self._root.set_events(self._saved_event_mask)
     #try a few times:
     #errors happen because windows are being destroyed
     #(even more so when we cleanup)
     #and we don't really care too much about this
     for l in (log, log, log, log, log.warn):
         try:
             with xsync:
                 cleanup_all_event_receivers()
                 #all went well, we're done
                 return
         except Exception as e:
             l("failed to remove event receivers: %s", e)
Example #3
0
 def cleanup(self):
     #this must be called from the UI thread!
     remove_event_receiver(self._root, self)
     self._root.set_events(self._saved_event_mask)
     if self._own_x11_filter:
         #only remove the x11 filter if we initialized it (ie: when running in client)
         try:
             with xsync:
                 cleanup_x11_filter()
         except Exception as e:
             log.error("failed to remove x11 event filter: %s", e)
         #try a few times:
         #errors happen because windows are being destroyed
         #(even more so when we cleanup)
         #and we don't really care too much about this
         for l in (log, log, log, log, log.warn):
             try:
                 with xsync:
                     cleanup_all_event_receivers()
                     #all went well, we're done
                     return
             except Exception as e:
                 l("failed to remove event receivers: %s", e)
Example #4
0
 def do_cleanup(self, *args):
     X11ServerBase.do_cleanup(self)
     remove_catchall_receiver("xpra-motion-event", self)
     cleanup_x11_filter()
     with xswallow:
         cleanup_all_event_receivers()
Example #5
0
 def do_cleanup(self, *args):
     X11ServerBase.do_cleanup(self)
     remove_catchall_receiver("xpra-motion-event", self)
     cleanup_x11_filter()
     with xswallow:
         cleanup_all_event_receivers()