def setup_listener(self, qtile: Qtile) -> None: """Setup a listener for the given qtile instance""" logger.debug("Adding io watch") self.qtile = qtile self.fd = lib.wl_event_loop_get_fd(self.event_loop._ptr) if self.fd: asyncio.get_running_loop().add_reader(self.fd, self._poll) else: raise RuntimeError( "Failed to get Wayland event loop file descriptor.")
def setup_listener(self, qtile: Qtile) -> None: """Setup a listener for the given qtile instance""" logger.debug("Adding io watch") self.qtile = qtile self.fd = lib.wl_event_loop_get_fd(self.event_loop._ptr) asyncio.get_running_loop().add_reader(self.fd, self._poll)