diff --git a/src/selkies_gstreamer/webrtc_input.py b/src/selkies_gstreamer/webrtc_input.py index b197cac6..e123e3ee 100644 --- a/src/selkies_gstreamer/webrtc_input.py +++ b/src/selkies_gstreamer/webrtc_input.py @@ -582,7 +582,10 @@ def on_message(self, msg): except: x, y, button_mask = 0, 0, self.button_mask relative = False - self.send_x11_mouse(x, y, button_mask, relative) + try: + self.send_x11_mouse(x, y, button_mask, relative) + except Exception as e: + logger.warning('failed to set mouse cursor: {}'.format(e)) elif toks[0] == "p": # toggle mouse pointer visibility visible = bool(int(toks[1]))