From ecc04e8ba7469fb01c5a066bf1c48d5cd58d1a18 Mon Sep 17 00:00:00 2001 From: mavonarx <75391689+mavonarx@users.noreply.github.com> Date: Wed, 23 Jul 2025 23:11:07 +0200 Subject: drm: check syncobj timeline support before advertising protocol (#11117) Prevents crashes on systems where DRM driver lacks syncobj timeline support (e.g., Apple Silicon with Honeykrisp driver). Applications like Zed and WezTerm would crash with 'Timeline failed importing' when trying to use explicit sync. Fixes #8158 #8803 --------- Co-authored-by: mvonarx --- src/Compositor.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Compositor.hpp') diff --git a/src/Compositor.hpp b/src/Compositor.hpp index b4a0c51c..23d1c365 100644 --- a/src/Compositor.hpp +++ b/src/Compositor.hpp @@ -152,6 +152,7 @@ class CCompositor { NColorManagement::SImageDescription getPreferredImageDescription(); bool shouldChangePreferredImageDescription(); + bool supportsDrmSyncobjTimeline() const; std::string m_explicitConfigPath; private: @@ -165,6 +166,8 @@ class CCompositor { void removeLockFile(); void setMallocThreshold(); + bool m_bDrmSyncobjTimelineSupported = false; + uint64_t m_hyprlandPID = 0; wl_event_source* m_critSigSource = nullptr; rlimit m_originalNofile = {}; -- cgit v1.2.3