diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-17 21:47:09 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-17 21:47:09 +0000 |
| commit | 971e227b149f56b1b595193132b184d688634a99 (patch) | |
| tree | a42b09d30a63b73cfbb394fe1ee9f474222e64af /otk/screeninfo.cc | |
| parent | 3f80d431adf207fa28e709cfe271d9834e2262ab (diff) | |
set teh xinerama stuff even when not compiled with the xinerama extension so code can use it always
Diffstat (limited to 'otk/screeninfo.cc')
| -rw-r--r-- | otk/screeninfo.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/otk/screeninfo.cc b/otk/screeninfo.cc index 2838c897..689837d0 100644 --- a/otk/screeninfo.cc +++ b/otk/screeninfo.cc @@ -80,7 +80,7 @@ ScreenInfo::ScreenInfo(int num) { _display_string = string("DISPLAY=") + default_string + '.' + itostring(static_cast<unsigned long>(_screen)); - + #if 0 //def XINERAMA _xinerama_active = False; @@ -112,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)); } } |
