Skip to content

Commit

Permalink
nvctrl: use find_nv_x11 dpy instead
Browse files Browse the repository at this point in the history
  • Loading branch information
flightlessmango committed Oct 10, 2024
1 parent 7b2dea5 commit e77ff17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvidia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e77ff17

Please sign in to comment.