add check to configure script to detect old versions of Xrandr
This commit is contained in:
parent
ba03aaaa33
commit
27dc136121
2 changed files with 20 additions and 2 deletions
16
configure.in
16
configure.in
|
@ -494,6 +494,22 @@ AC_ARG_ENABLE(
|
|||
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])
|
||||
|
|
|
@ -865,7 +865,9 @@ void Fluxbox::handleEvent(XEvent * const e) {
|
|||
|
||||
#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)
|
||||
|
|
Loading…
Reference in a new issue