mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 22:52:34 +01:00
Code refactoring: replaced macro 'HAVE_XRANDR' by 'USE_XRANDR' for consistency
The usual way to define a macro in is to name macro with 'USE_xxx' when they are used to enable a feature 'xxx'. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
2a7a4d77d7
commit
73c00fac27
@@ -42,7 +42,7 @@
|
||||
#include "xdnd.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XRANDR
|
||||
#ifdef USE_XRANDR
|
||||
#include <X11/extensions/Xrandr.h>
|
||||
#endif
|
||||
|
||||
@@ -265,7 +265,7 @@ void DispatchEvent(XEvent * event)
|
||||
break;
|
||||
|
||||
case ConfigureNotify:
|
||||
#ifdef HAVE_XRANDR
|
||||
#ifdef USE_XRANDR
|
||||
if (event->xconfigure.window == DefaultRootWindow(dpy))
|
||||
XRRUpdateConfiguration(event);
|
||||
#endif
|
||||
@@ -557,7 +557,7 @@ static void handleExtensions(XEvent * event)
|
||||
handleXkbIndicatorStateNotify(event);
|
||||
}
|
||||
#endif /*KEEP_XKB_LOCK_STATUS */
|
||||
#ifdef HAVE_XRANDR
|
||||
#ifdef USE_XRANDR
|
||||
if (w_global.xext.randr.supported && event->type == (w_global.xext.randr.event_base + RRScreenChangeNotify)) {
|
||||
/* From xrandr man page: "Clients must call back into Xlib using
|
||||
* XRRUpdateConfiguration when screen configuration change notify
|
||||
|
||||
Reference in New Issue
Block a user