aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorMathias Gumz <mathias gumz at gmail com>2014-04-11 15:42:09 (GMT)
committerMathias Gumz <mathias gumz at gmail com>2014-04-11 15:42:40 (GMT)
commite105de7d46c4936790754857d8c789f3c7fccd87 (patch)
treecaaf0481ae7d743507f67d7d4e3977f31b153f65 /src/Screen.cc
parentbc272ba4aed707522cb458d659940567ac6fc386 (diff)
parent7541054b299bbd61310ab0456cf4f25b7a672de3 (diff)
downloadfluxbox-e105de7d46c4936790754857d8c789f3c7fccd87.zip
fluxbox-e105de7d46c4936790754857d8c789f3c7fccd87.tar.bz2
merge Sami Kerola's new build-system
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc26
1 files changed, 7 insertions, 19 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 3c7c79f..f1cee02 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -77,15 +77,6 @@
77#include "FbTk/KeyUtil.hh" 77#include "FbTk/KeyUtil.hh"
78#include "FbTk/Util.hh" 78#include "FbTk/Util.hh"
79 79
80//use GNU extensions
81#ifndef _GNU_SOURCE
82#define _GNU_SOURCE
83#endif // _GNU_SOURCE
84
85#ifdef HAVE_CONFIG_H
86#include "config.h"
87#endif // HAVE_CONFIG_H
88
89#ifdef USE_SLIT 80#ifdef USE_SLIT
90#include "Slit.hh" 81#include "Slit.hh"
91#include "SlitClient.hh" 82#include "SlitClient.hh"
@@ -401,21 +392,18 @@ BScreen::BScreen(FbTk::ResourceManager &rm,
401 392
402 393
403// setup RANDR for this screens root window 394// setup RANDR for this screens root window
404#if defined(HAVE_RANDR1_2) 395#if defined(HAVE_RANDR)
405 int randr_mask = RRScreenChangeNotifyMask; 396 int randr_mask = RRScreenChangeNotifyMask;
406#ifdef RRCrtcChangeNotifyMask 397# ifdef RRCrtcChangeNotifyMask
407 randr_mask |= RRCrtcChangeNotifyMask; 398 randr_mask |= RRCrtcChangeNotifyMask;
408#endif 399# endif
409#ifdef RROutputChangeNotifyMask 400# ifdef RROutputChangeNotifyMask
410 randr_mask |= RROutputChangeNotifyMask; 401 randr_mask |= RROutputChangeNotifyMask;
411#endif 402# endif
412#ifdef RROutputPropertyNotifyMask 403# ifdef RROutputPropertyNotifyMask
413 randr_mask |= RROutputPropertyNotifyMask; 404 randr_mask |= RROutputPropertyNotifyMask;
414#endif 405# endif
415 XRRSelectInput(disp, rootWindow().window(), randr_mask); 406 XRRSelectInput(disp, rootWindow().window(), randr_mask);
416
417#elif defined(HAVE_RANDR)
418 XRRScreenChangeSelectInput(disp, rootWindow().window(), True);
419#endif // HAVE_RANDR 407#endif // HAVE_RANDR
420 408
421 409