mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Removed XRANDR externs
This patch moves the XRANDR variable definitions to screen.h, because xrandr is related to screen behavior. Then, the definition externs can be removed. This patch also changes (in event.c) the ConfigureNotify event processing to avoid call the "if" block if XRANDR is not enabled. I chose the option of move the if into the HAVE_XRANDR block instead of include the ConfigureNotify case inside of the HAVE_XRANDR block (proposed by BALATON Zoltan) to avoid call the default option if not needed.
This commit is contained in:
committed by
Carlos R. Mafra
parent
c058af6d35
commit
b71f2c30fd
@@ -139,11 +139,6 @@ Bool wXkbSupported;
|
||||
int wXkbEventBase;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XRANDR
|
||||
Bool has_randr;
|
||||
int randr_event_base;
|
||||
#endif
|
||||
|
||||
/* special flags */
|
||||
char WProgramSigState = 0;
|
||||
char WProgramState = WSTATE_NORMAL;
|
||||
|
||||
Reference in New Issue
Block a user