diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 20:40:50 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-16 20:40:50 -0400 |
commit | 98ff71aff13d9e35bb2436a15ea3fd38ea2fffa4 (patch) | |
tree | 31fac64d563b0c07d9b38b6ea116fde5c2db6fd6 /src/twm.h | |
parent | 9f3f818068ba54ab2b46142e73100ef10a0bda0b (diff) |
issue 2: twm doesn't handle RandR screen size changes
patch submitted by Preston Crow
modified to check if xrandr development header/library is available
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/twm.h')
-rw-r--r-- | src/twm.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -355,6 +355,10 @@ extern Window ResizeWindow; /* the window we are resizing */ extern int HasShape; /* this server supports Shape extension */ extern int HasSync; /* this server supports SYNC extension */ +#ifdef HAVE_XRANDR +extern int HasXrandr; /* this server supports Xrandr extension */ +#endif + extern int PreviousScreen; extern Cursor UpperLeftCursor; @@ -410,6 +414,11 @@ extern Bool use_fontset; extern int ShapeEventBase; extern int ShapeErrorBase; +#ifdef HAVE_XRANDR +extern int XrandrEventBase; +extern int XrandrErrorBase; +#endif + #define _XA_MIT_PRIORITY_COLORS TwmAtoms[0] #define _XA_WM_CHANGE_STATE TwmAtoms[1] #define _XA_WM_STATE TwmAtoms[2] |