]> Dogcows Code - chaz/openbox/blobdiff - otk/screeninfo.cc
signed ints instead of unsigned ints again. less pain. pain bad.
[chaz/openbox] / otk / screeninfo.cc
index 560a56362a6edd164284c9d2b7de723da29947e9..535156e99eadb74037d363ce6436779901001f19 100644 (file)
@@ -17,7 +17,9 @@ using std::string;
 
 namespace otk {
 
-ScreenInfo::ScreenInfo(unsigned int num) {
+ScreenInfo::ScreenInfo(int num) {
+  assert(num >= 0 && num < ScreenCount(**display));
+  
   _screen = num;
 
   _root_window = RootWindow(**display, _screen);
This page took 0.022294 seconds and 4 git commands to generate.