From 54f9e2e9ccaf21e13619fea61c0bda892582a8d1 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 16 Nov 2013 20:14:31 +0100 Subject: [PATCH] wmaker: Do not create a temporary variable for Xrandr support detection The other extension detection have the same situation and they already have a variable for that, do not do differently for Xrandr because it adds unnecessary complexity in the code. Signed-off-by: Christophe CURIS --- src/startup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/startup.c b/src/startup.c index 3bd9f99a..07b6367e 100644 --- a/src/startup.c +++ b/src/startup.c @@ -412,9 +412,6 @@ void StartUp(Bool defaultScreenOnly) struct sigaction sig_action; int i, j, max; char **formats; -#ifdef HAVE_XRANDR - int dummy; -#endif Atom atom[wlengthof(atomNames)]; /* @@ -596,7 +593,7 @@ void StartUp(Bool defaultScreenOnly) #endif #ifdef HAVE_XRANDR - w_global.xext.randr.supported = XRRQueryExtension(dpy, &w_global.xext.randr.event_base, &dummy); + w_global.xext.randr.supported = XRRQueryExtension(dpy, &w_global.xext.randr.event_base, &j); #endif #ifdef KEEP_XKB_LOCK_STATUS