From: Christophe CURIS <[email protected]> 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 <[email protected]> --- src/startup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/startup.c b/src/startup.c index 3bd9f99..07b6367 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 -- 1.8.4.rc3 -- To unsubscribe, send mail to [email protected].
