X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Fdisplay.cc;h=cb13440a561bf3070bdcee985ed08e5744923f16;hb=1e46a39dc305fe92b0c0eca1e60e76fded3e5214;hp=21215e2b7ff51ad026287d8f0b6ccdd1418ce17d;hpb=0f2bcee0cdad317a86230b43f437e0243165277b;p=chaz%2Fopenbox diff --git a/otk/display.cc b/otk/display.cc index 21215e2b..cb13440a 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -1,8 +1,6 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif +#include "config.h" #include "display.hh" #include "screeninfo.hh" @@ -24,10 +22,6 @@ extern "C" { #include #endif // XINERAMA -#ifdef HAVE_STDIO_H -# include -#endif // HAVE_STDIO_H - #ifdef HAVE_SIGNAL_H # include #endif // HAVE_SIGNAL_H @@ -45,6 +39,8 @@ extern "C" { #define _(str) gettext(str) } +#include + namespace otk { @@ -58,7 +54,7 @@ static int xerrorHandler(::Display *d, XErrorEvent *e) //if (e->error_code != BadWindow) { - XGetErrorText(d, e->error_code, errtxt, 128); + XGetErrorText(d, e->error_code, errtxt, 127); printf("X Error: %s\n", errtxt); if (e->error_code != BadWindow) abort();