X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.h;h=e1b787fe8040ab47d32064e4496ff5a9f6cab1b6;hb=7e47a57027e043d4fe908d5f0acb7882d4f9330f;hp=3e7b2c619a0a63d67d6d40821e0689472742259e;hpb=f55ae9e56945892825928cfb021b5e739d0d5224;p=chaz%2Fopenbox diff --git a/openbox/frame.h b/openbox/frame.h index 3e7b2c61..e1b787fe 100644 --- a/openbox/frame.h +++ b/openbox/frame.h @@ -56,6 +56,12 @@ typedef enum { OB_FRAME_NUM_CONTEXTS } ObFrameContext; +#define FRAME_CONTEXT(co, cl) ((cl && cl->type != OB_CLIENT_TYPE_DESKTOP) ? \ + co == OB_FRAME_CONTEXT_FRAME : FALSE) +#define CLIENT_CONTEXT(co, cl) ((cl && cl->type == OB_CLIENT_TYPE_DESKTOP) ? \ + co == OB_FRAME_CONTEXT_DESKTOP : \ + co == OB_FRAME_CONTEXT_CLIENT) + /*! The decorations the client window wants to be displayed on it */ typedef enum { OB_FRAME_DECOR_TITLEBAR = 1 << 0, /*!< Display a titlebar */ @@ -137,16 +143,6 @@ struct _ObFrame Colormap colormap; - RrAppearance *a_unfocused_title; - RrAppearance *a_focused_title; - RrAppearance *a_unfocused_label; - RrAppearance *a_focused_label; - RrAppearance *a_icon; - RrAppearance *a_unfocused_handle; - RrAppearance *a_focused_handle; - - GSList *clients; - gint icon_on; /* if the window icon button is on */ gint label_on; /* if the window title is on */ gint iconify_on; /* if the window iconify button is on */