1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 21:38:00 +01:00

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 <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-11-16 20:14:31 +01:00
committed by Carlos R. Mafra
parent f7931ecd02
commit 54f9e2e9cc

View File

@@ -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