From af79fce66d023b300f308ec78289c616c81037d3 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Mon, 6 Oct 2014 18:23:33 +0100 Subject: overlay: Fix compilation warning when not having xrandr Signed-off-by: Damien Lespiau --- overlay/x11/position.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'overlay/x11/position.c') diff --git a/overlay/x11/position.c b/overlay/x11/position.c index f4302813..cd003539 100644 --- a/overlay/x11/position.c +++ b/overlay/x11/position.c @@ -76,10 +76,11 @@ static enum position get_position(struct config *config) static void screen_size(Display *dpy, struct config *config, int *scr_x, int *scr_y, int *scr_width, int *scr_height) { - const char *crtc; Screen *scr; #ifdef HAVE_XRANDR + const char *crtc; + crtc = config_get_value(config, "x11", "crtc"); if (crtc) { XRRScreenResources *res; -- cgit v1.2.3