dwm.c
changeset 1463 ba3114b785a1
parent 1462 7997ebe5484f
child 1464 555070221577
equal deleted inserted replaced
1462:7997ebe5484f 1463:ba3114b785a1
    49 #define MAX(A, B)               ((A) > (B) ? (A) : (B))
    49 #define MAX(A, B)               ((A) > (B) ? (A) : (B))
    50 #define MIN(A, B)               ((A) < (B) ? (A) : (B))
    50 #define MIN(A, B)               ((A) < (B) ? (A) : (B))
    51 #define MOUSEMASK               (BUTTONMASK|PointerMotionMask)
    51 #define MOUSEMASK               (BUTTONMASK|PointerMotionMask)
    52 #define WIDTH(X)                ((X)->w + 2 * (X)->bw)
    52 #define WIDTH(X)                ((X)->w + 2 * (X)->bw)
    53 #define HEIGHT(X)               ((X)->h + 2 * (X)->bw)
    53 #define HEIGHT(X)               ((X)->h + 2 * (X)->bw)
    54 #define TAGMASK                 ((int)((1 << LENGTH(tags)) - 1))
    54 #define TAGMASK                 ((1 << LENGTH(tags)) - 1)
    55 #define TEXTW(X)                (textnw(X, strlen(X)) + dc.font.height)
    55 #define TEXTW(X)                (textnw(X, strlen(X)) + dc.font.height)
    56 
    56 
    57 /* enums */
    57 /* enums */
    58 enum { CurNormal, CurResize, CurMove, CurLast };        /* cursor */
    58 enum { CurNormal, CurResize, CurMove, CurLast };        /* cursor */
    59 enum { ColBorder, ColFG, ColBG, ColLast };              /* color */
    59 enum { ColBorder, ColFG, ColBG, ColLast };              /* color */