Skip to content

Commit

Permalink
Exception handling in input
Browse files Browse the repository at this point in the history
  • Loading branch information
ehfd authored Oct 23, 2023
1 parent 48cbead commit a01eca9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/selkies_gstreamer/webrtc_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down

0 comments on commit a01eca9

Please sign in to comment.