]> Dogcows Code - chaz/openbox/blobdiff - otk/screeninfo.cc
set the gravity to center the dialog.
[chaz/openbox] / otk / screeninfo.cc
index 560a56362a6edd164284c9d2b7de723da29947e9..2838c897f888f46180dd3b7f355f2ecc205d21ec 100644 (file)
@@ -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 <X11/Xlib.h>
@@ -17,7 +15,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.024858 seconds and 4 git commands to generate.