Skip to content

Commit

Permalink
#2243 GTK3 under wayland defines cursor constants it is unable to ins…
Browse files Browse the repository at this point in the history
…tantiate.. log an error and try to continue

git-svn-id: https://xpra.org/svn/Xpra/trunk@23297 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 25, 2019
1 parent 3e9ee13 commit ad38132
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xpra/client/gtk_base/gtk_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,11 @@ def make_cursor(self, cursor_data):
gdk_cursor = cursor_types.get(cursor_name.upper())
if gdk_cursor is not None:
cursorlog("setting new cursor by name: %s=%s", cursor_name, gdk_cursor)
return new_Cursor_for_display(display, gdk_cursor)
try:
return new_Cursor_for_display(display, gdk_cursor)
except TypeError as e:
log("new_Cursor_for_display(%s, %s)", display, gdk_cursor, exc_info=True)
log.error("Error creating cursor %s: %s", cursor_name.upper(), e)
global missing_cursor_names
if cursor_name not in missing_cursor_names:
cursorlog("cursor name '%s' not found", cursor_name)
Expand Down

0 comments on commit ad38132

Please sign in to comment.