From e77ff17cf5d0bf986015129a0046c4c0fc91d492 Mon Sep 17 00:00:00 2001 From: flightlessmango Date: Thu, 10 Oct 2024 18:41:41 +0200 Subject: [PATCH] nvctrl: use find_nv_x11 dpy instead --- src/nvidia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvidia.cpp b/src/nvidia.cpp index a8a697b002..5bca5949c3 100644 --- a/src/nvidia.cpp +++ b/src/nvidia.cpp @@ -59,7 +59,7 @@ NVIDIA::NVIDIA(const char* pciBusId) { if (!nvctrl_available) SPDLOG_DEBUG("XNVCtrl didn't find the correct display"); else { - nvctrl.XNVCTRLQueryTargetCount(this->display.get(), + nvctrl.XNVCTRLQueryTargetCount(dpy, NV_CTRL_TARGET_TYPE_COOLER, &num_coolers); }