Пример #1
0
 def cleanup(self, *args):
     if self._tray:
         self._tray.cleanup()
         self._tray = None
     X11ServerBase.cleanup(self)
     cleanup_x11_filter()
     cleanup_all_event_receivers()
     if self._wm:
         self._wm.cleanup()
         self._wm = None
     if self._has_grab:
         #normally we set this value when we receive the NotifyUngrab
         #but at this point in the cleanup, we probably won't, so force set it:
         self._has_grab = 0
         self.X11_ungrab()
Пример #2
0
 def cleanup(self, *args):
     if self._tray:
         self._tray.cleanup()
         self._tray = None
     X11ServerBase.cleanup(self)
     cleanup_x11_filter()
     cleanup_all_event_receivers()
     if self._wm:
         self._wm.cleanup()
         self._wm = None
     if self._has_grab:
         #normally we set this value when we receive the NotifyUngrab
         #but at this point in the cleanup, we probably won't, so force set it:
         self._has_grab = 0
         self.X11_ungrab()
Пример #3
0
 def cleanup(self, *args):
     if self._tray:
         self._tray.cleanup()
         self._tray = None
     X11ServerBase.cleanup(self)