aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
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