Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
cb946d4b by wurstsalat at 2024-05-19T17:24:49+02:00
fix: Cursors: Attept to fix getting default cursor on Wayland

- - - - -


1 changed file:

- gajim/gtk/util.py


Changes:

=====================================
gajim/gtk/util.py
=====================================
@@ -280,9 +280,13 @@ def get_completion_liststore(entry: Gtk.Entry) -> 
Gtk.ListStore:
 def get_cursor(name: str) -> Gdk.Cursor:
     display = Gdk.Display.get_default()
     assert display is not None
-    cursor = Gdk.Cursor.new_from_name(display, name)
-    if cursor is not None:
-        return cursor
+    try:
+        cursor = Gdk.Cursor.new_from_name(display, name)
+        if cursor is not None:
+            return cursor
+    except TypeError as e:
+        log.exception(e)
+
     cursor = Gdk.Cursor.new_from_name(display, 'default')
     assert cursor is not None
     return cursor



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/cb946d4b1d16df2a44643d43b6ba7d05d38fdb42

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/cb946d4b1d16df2a44643d43b6ba7d05d38fdb42
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to