diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-18 06:56:12 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2017-09-18 06:56:12 +0200 |
commit | cbd91e801bf71eb0e7b2d5a2264c36007a3e12cc (patch) | |
tree | 482d38dbd98a11bcd9f8ad02557f3f16a0b0e7c2 /src/Makefile.am | |
parent | 0a90c2ac60cbb511ec24a52d723291d82a0124ba (diff) | |
download | ratpoison-cbd91e801bf71eb0e7b2d5a2264c36007a3e12cc.zip |
Move #ifdef HAVE_XRANDR in xrandr.c
- always build xrandr.c
- provide stubs in xrandr.c; only init_xrandr() anc xrandr_fill_screen()
are safe to call if XRandR support is not built in
Code that wants to use XRandR outside xrandr.c should test rp_have_xrandr.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 5bb1934..7c508a1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -74,11 +74,9 @@ ratpoison_SOURCES = actions.c \ util.c \ util.h \ window.c \ - window.h - -if HAVE_XRANDR -ratpoison_SOURCES += xrandr.c xrandr.h -endif + window.h \ + xrandr.c \ + xrandr.h TESTS = test-sbuf-utf8-nconcat check_PROGRAMS = test-sbuf-utf8-nconcat |