aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2013-02-13 21:33:09 (GMT)
committerSami Kerola <kerolasa@iki.fi>2013-05-26 09:38:10 (GMT)
commit9e5eddfc3d42afc7455cdccc4907ea57a98aeb47 (patch)
tree4888f208bbc8d7751ddf0f3126d0672b873a5249 /src/Screen.cc
parent22ddf8fd3650072c6243941f27617158e111b236 (diff)
downloadfluxbox-9e5eddfc3d42afc7455cdccc4907ea57a98aeb47.zip
fluxbox-9e5eddfc3d42afc7455cdccc4907ea57a98aeb47.tar.bz2
build-sys: use pkg-config to locate dependencies
This commit alters XRANDR (X Resize And Rotate) extension dependency, which is expected to have at least version 1.4. Earlier old versions of xrandr were supported, at least to some extent.
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 05d274a..7cdf150 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -392,21 +392,18 @@ BScreen::BScreen(FbTk::ResourceManager &rm,
392 392
393 393
394// setup RANDR for this screens root window 394// setup RANDR for this screens root window
395#if defined(HAVE_RANDR1_2) 395#if defined(HAVE_RANDR)
396 int randr_mask = RRScreenChangeNotifyMask; 396 int randr_mask = RRScreenChangeNotifyMask;
397#ifdef RRCrtcChangeNotifyMask 397# ifdef RRCrtcChangeNotifyMask
398 randr_mask |= RRCrtcChangeNotifyMask; 398 randr_mask |= RRCrtcChangeNotifyMask;
399#endif 399# endif
400#ifdef RROutputChangeNotifyMask 400# ifdef RROutputChangeNotifyMask
401 randr_mask |= RROutputChangeNotifyMask; 401 randr_mask |= RROutputChangeNotifyMask;
402#endif 402# endif
403#ifdef RROutputPropertyNotifyMask 403# ifdef RROutputPropertyNotifyMask
404 randr_mask |= RROutputPropertyNotifyMask; 404 randr_mask |= RROutputPropertyNotifyMask;
405#endif 405# endif
406 XRRSelectInput(disp, rootWindow().window(), randr_mask); 406 XRRSelectInput(disp, rootWindow().window(), randr_mask);
407
408#elif defined(HAVE_RANDR)
409 XRRScreenChangeSelectInput(disp, rootWindow().window(), True);
410#endif // HAVE_RANDR 407#endif // HAVE_RANDR
411 408
412 409