diff --git a/src/protocols/CTMControl.cpp b/src/protocols/CTMControl.cpp index c9e9d098..38145ab1 100644 --- a/src/protocols/CTMControl.cpp +++ b/src/protocols/CTMControl.cpp @@ -34,8 +34,8 @@ CHyprlandCTMControlResource::CHyprlandCTMControlResource(UPerror(HYPRLAND_CTM_CONTROL_MANAGER_V1_ERROR_INVALID_MATRIX, "a matrix component was < 0"); + if (!std::isfinite(el) || el < 0.F) { + m_resource->error(HYPRLAND_CTM_CONTROL_MANAGER_V1_ERROR_INVALID_MATRIX, "a matrix component was invalid"); return; } }