X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.h;fp=openbox%2Fframe.h;h=e1b787fe8040ab47d32064e4496ff5a9f6cab1b6;hb=1ef0d8eb53fcae52afbae74310fbef0cac729951;hp=02be17a004745f4ad69d22a52fc8d210ee81346d;hpb=dd97c9beac2778cddb97603315b21778323a25c7;p=chaz%2Fopenbox diff --git a/openbox/frame.h b/openbox/frame.h index 02be17a0..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 */