From f5160b014413cbfee9c8ec7c21957d59435af3ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Mon, 23 Sep 2024 14:02:23 -0400 Subject: [PATCH] Fix build when XRandR is available, but Xinerama isn't. --- src/conio/x_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conio/x_events.c b/src/conio/x_events.c index 912ff02d2a..f057eee8dd 100644 --- a/src/conio/x_events.c +++ b/src/conio/x_events.c @@ -456,6 +456,7 @@ fullscreen_geometry(int *x_org, int *y_org, int *width, int *height) int wx, wy; #if defined(WITH_XRANDR) || defined(WITH_XINERAMA) int cx, cy; + int i; #endif #ifdef WITH_XRANDR static XRRScreenResources *xrrsr = NULL; @@ -464,7 +465,6 @@ fullscreen_geometry(int *x_org, int *y_org, int *width, int *height) bool found; #endif #ifdef WITH_XINERAMA - int i; int nscrn; XineramaScreenInfo *xsi; #endif -- GitLab