[client,x11] query correct display

This commit is contained in:
Armin Novak 2023-11-25 17:23:19 +01:00 committed by akallabeth
parent 45b41bae72
commit 1e88b2fa37

View File

@ -68,11 +68,11 @@ int xf_list_monitors(xfContext* xfc)
#if defined(USABLE_XRANDR)
if (XRRQueryExtension(xfc->display, &major, &minor) &&
(XRRQueryVersion(xfc->display, &major, &minor) == True) && (major * 100 + minor >= 105))
if (XRRQueryExtension(display, &major, &minor) &&
(XRRQueryVersion(display, &major, &minor) == True) && (major * 100 + minor >= 105))
{
XRRMonitorInfo* monitors =
XRRGetMonitors(xfc->display, DefaultRootWindow(xfc->display), 1, &nmonitors);
XRRGetMonitors(display, DefaultRootWindow(display), 1, &nmonitors);
for (i = 0; i < nmonitors; i++)
{