xpra icon
Bug tracker and wiki

Ticket #556: disable-grabs.patch

File disable-grabs.patch, 1.3 KB (added by Antoine Martin, 6 years ago)

disables the grab helper code

  • xpra/x11/gtk_x11/window.py

     
    303303        self._internal_set_property("client-window", client_window)
    304304        use_xshm = USE_XSHM and (not self.is_OR() and not self.is_tray())
    305305        self._composite = CompositeHelper(self.client_window, False, use_xshm)
    306         self._pointer_grab = PointerGrabHelper(self.client_window)
     306        self._pointer_grab = None   #PointerGrabHelper(self.client_window)
    307307        self.property_names = ["pid", "transient-for", "fullscreen", "maximized", "window-type", "role", "group-leader", "xid", "has-alpha"]
    308308
    309309    def get_property_names(self):
     
    346346            except Exception, ex:
    347347                log.error("error in cleanup handler: %s", ex)
    348348            raise Unmanageable(e)
    349         self._pointer_grab.setup()
    350         self._pointer_grab.connect("grab", self.pointer_grab_event)
    351         self._pointer_grab.connect("ungrab", self.pointer_ungrab_event)
     349        #self._pointer_grab.setup()
     350        #self._pointer_grab.connect("grab", self.pointer_grab_event)
     351        #self._pointer_grab.connect("ungrab", self.pointer_ungrab_event)
    352352        self._setup_done = True
    353353
    354354    def setup_failed(self, e):