X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fscreeninfo.cc;h=e0a3ca9dc0cedb37868f99f77fa5c15f2d64866b;hb=9834a687fc5180f0beba99bc15fe5763f5c20317;hp=22ec6d02e02e6871c1474cace057901c75b518ff;hpb=fa8cefef63feb1d559c40db3cf9407e5bd1ac4df;p=chaz%2Fopenbox diff --git a/otk/screeninfo.cc b/otk/screeninfo.cc index 22ec6d02..e0a3ca9d 100644 --- a/otk/screeninfo.cc +++ b/otk/screeninfo.cc @@ -4,8 +4,14 @@ # include "../config.h" #endif // HAVE_CONFIG_H +extern "C" { +#include +#include +} + #include "screeninfo.hh" #include "display.hh" +#include "util.hh" using std::string; @@ -14,7 +20,7 @@ namespace otk { ScreenInfo::ScreenInfo(unsigned int num) { screen_number = num; - root_window = RootWindow(ob::OBDisplay::display, screen_number); + root_window = RootWindow(OBDisplay::display, screen_number); rect.setSize(WidthOfScreen(ScreenOfDisplay(OBDisplay::display, screen_number)), @@ -73,7 +79,7 @@ ScreenInfo::ScreenInfo(unsigned int num) { default_string.resize(pos); display_string = string("DISPLAY=") + default_string + '.' + - itostring(static_cast(screen_number)); + otk::itostring(static_cast(screen_number)); #ifdef XINERAMA xinerama_active = False;