X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk_c%2Fscreeninfo.h;h=70ce7d3acba75d32d2d0219c9690fcaf706cc257;hb=bc88d310fea71823fb2c61d071ff499579bffaba;hp=5114a37cfb4e12aa4e0e11c08747d1ea6428f6b2;hpb=e5c5b4bf700f9bf00dd88bd4b6a471ac1ccefaff;p=chaz%2Fopenbox diff --git a/otk_c/screeninfo.h b/otk_c/screeninfo.h index 5114a37c..70ce7d3a 100644 --- a/otk_c/screeninfo.h +++ b/otk_c/screeninfo.h @@ -1,11 +1,16 @@ -// -*- mode: C; indent-tabs-mode: nil; -*- +// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*- #ifndef __screeninfo_h #define __screeninfo_h #include #include +extern PyTypeObject OtkScreenInfo_Type; + +struct OtkRect; + typedef struct OtkScreenInfo { + PyObject_HEAD int screen; Window root_window; @@ -13,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;