diff --git a/src/gen/constfunc.py b/src/gen/constfunc.py index 10a2ad4ca..cfdc5ff27 100644 --- a/src/gen/constfunc.py +++ b/src/gen/constfunc.py @@ -94,7 +94,7 @@ def is_quartz(): from gi.repository import Gdk except: return False - return Gdk.WINDOWING == "quartz" + return Gdk.Display.get_default().__class__.__name__.endswith("quartzDisplay") return False def has_display():