Skip to content

Commit

Permalink
some older Ubuntu versions seem to trigger errors here, catch and jus…
Browse files Browse the repository at this point in the history
…t log them

git-svn-id: https://xpra.org/svn/Xpra/trunk@10822 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 13, 2015
1 parent 92c19b3 commit e91a7d4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/xpra/x11/x11_server_base.py
Expand Up @@ -251,8 +251,13 @@ def _clear_keys_pressed(self):

def get_cursor_data(self):
#must be called from the UI thread!
with xsync:
cursor_data = X11Keyboard.get_cursor_image()
try:
with xsync:
cursor_data = X11Keyboard.get_cursor_image()
except Exception as e:
cursorlog.error("Error getting cursor data:")
cursorlog.error(" %s", e)
return None, []
if cursor_data is None:
cursorlog("get_cursor_data() failed to get cursor image")
return None, []
Expand Down

0 comments on commit e91a7d4

Please sign in to comment.