all repos — fluxbox @ 27dc136121a6f97c5fbfeec6b642cf091324def4

custom fork of the fluxbox windowmanager

add check to configure script to detect old versions of Xrandr
Mark Tiefenbruck mark@fluxbox.org
commit

27dc136121a6f97c5fbfeec6b642cf091324def4

parent

ba03aaaa33af1f405b91e57aa49958547c5ed39f

2 files changed, 20 insertions(+), 2 deletions(-)

jump to
M configure.inconfigure.in

@@ -494,6 +494,22 @@ AC_DEFINE(HAVE_RANDR, 1, "randr support")

LIBS="$LIBS -lXrandr") ) +AC_MSG_CHECKING([whether to have RANDR 1.2 support]) +AC_ARG_ENABLE( + randr1.2, +[ --enable-randr1.2 RANDR 1.2 support ([default=yes])], + if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) + AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration, + AC_DEFINE(HAVE_RANDR1_2, 1, "randr 1.2 support")) + else + AC_MSG_RESULT([no]) + fi, + AC_MSG_RESULT([yes]) + AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration, + AC_DEFINE(HAVE_RANDR1_2, 1, "randr 1.2 support")) +) + dnl Check for Xinerama support AC_MSG_CHECKING([whether to build support for the Xinerama extension])

@@ -549,7 +565,7 @@ AC_SUBST(DEFAULT_KEYS)

AC_ARG_WITH( apps, - [ --with-apps=path location apps file (PREFIX/share/fluxbox/apps)], + [ --with-apps=path location apps file (PREFIX/share/fluxbox/apps)], DEFAULT_APPS=$with_apps, DEFAULT_APPS=\$\(prefix\)/share/fluxbox/apps )

@@ -557,7 +573,7 @@ AC_SUBST(DEFAULT_APPS)

AC_ARG_WITH( overlay, - [ --with-overlay=path location overlay file (PREFIX/share/fluxbox/overlay)], + [ --with-overlay=path location overlay file (PREFIX/share/fluxbox/overlay)], DEFAULT_OVERLAY=$with_overlay, DEFAULT_OVERLAY=\$\(prefix\)/share/fluxbox/overlay )
M src/fluxbox.ccsrc/fluxbox.cc

@@ -865,7 +865,9 @@ default: {

#ifdef HAVE_RANDR if (e->type == m_randr_event_type) { +#ifdef HAVE_RANDR1_2 XRRUpdateConfiguration(e); +#endif // update root window size in screen BScreen *scr = searchScreen(e->xany.window); if (scr != 0)