mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +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:
committed by
Carlos R. Mafra
parent
f7931ecd02
commit
54f9e2e9cc
@@ -412,9 +412,6 @@ void StartUp(Bool defaultScreenOnly)
|
|||||||
struct sigaction sig_action;
|
struct sigaction sig_action;
|
||||||
int i, j, max;
|
int i, j, max;
|
||||||
char **formats;
|
char **formats;
|
||||||
#ifdef HAVE_XRANDR
|
|
||||||
int dummy;
|
|
||||||
#endif
|
|
||||||
Atom atom[wlengthof(atomNames)];
|
Atom atom[wlengthof(atomNames)];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -596,7 +593,7 @@ void StartUp(Bool defaultScreenOnly)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_XRANDR
|
#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
|
#endif
|
||||||
|
|
||||||
#ifdef KEEP_XKB_LOCK_STATUS
|
#ifdef KEEP_XKB_LOCK_STATUS
|
||||||
|
|||||||
Reference in New Issue
Block a user