X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk_c%2Fscreeninfo.h;h=70ce7d3acba75d32d2d0219c9690fcaf706cc257;hb=bc88d310fea71823fb2c61d071ff499579bffaba;hp=3a330f57df7c7c4e38b49ac7e81881eb8166f156;hpb=cca7a6762d273815947bd5c7cc58ab6713693e8e;p=chaz%2Fopenbox diff --git a/otk_c/screeninfo.h b/otk_c/screeninfo.h index 3a330f57..70ce7d3a 100644 --- a/otk_c/screeninfo.h +++ b/otk_c/screeninfo.h @@ -1,4 +1,4 @@ -// -*- mode: C; indent-tabs-mode: nil; -*- +// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*- #ifndef __screeninfo_h #define __screeninfo_h @@ -7,7 +7,10 @@ extern PyTypeObject OtkScreenInfo_Type; +struct OtkRect; + typedef struct OtkScreenInfo { + PyObject_HEAD int screen; Window root_window; @@ -15,10 +18,10 @@ typedef struct OtkScreenInfo { Visual *visual; Colormap colormap; - PyObject *display_string; // PyStringObject - PyObject *rect; // OtkRect + PyStringObject *display_string; + struct OtkRect *rect; // OtkRect #ifdef XINERAMA - PyObject *xinerama_areas; // PyListObject[OtkRect] + PyListObject *xinerama_areas; // holds OtkRect's Bool xinerama_active; #endif } OtkScreenInfo;