X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fscreeninfo.cc;h=689837d0202a969d41e7191d1e803ada401829d8;hb=1e47e17d08d72d181edc2bde598ad246055655ad;hp=535156e99eadb74037d363ce6436779901001f19;hpb=74cfb1b4c115cdb4e05aa823b09d2b5ea9d0d690;p=chaz%2Fopenbox diff --git a/otk/screeninfo.cc b/otk/screeninfo.cc index 535156e9..689837d0 100644 --- a/otk/screeninfo.cc +++ b/otk/screeninfo.cc @@ -1,8 +1,6 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif // HAVE_CONFIG_H +#include "config.h" extern "C" { #include @@ -82,7 +80,7 @@ ScreenInfo::ScreenInfo(int num) { _display_string = string("DISPLAY=") + default_string + '.' + itostring(static_cast(_screen)); - + #if 0 //def XINERAMA _xinerama_active = False; @@ -114,12 +112,16 @@ ScreenInfo::ScreenInfo(int num) { // if we can't find any xinerama regions, then we act as if it is not // active, even though it said it was - _xinerama_active = True; + _xinerama_active = true; } } } } +#else + _xinerama_active = false; #endif // XINERAMA + if (!_xinerama_active) + _xinerama_areas.push_back(Rect(Point(0, 0), _size)); } }