6 /* ---------------------------- included header files ---------------------- */
8 /* ---------------------------- global definitions ------------------------- */
10 /* ---------------------------- global macros ------------------------------ */
12 /* ---------------------------- type definitions --------------------------- */
16 /* contexts for button presses */
34 C_UNMANAGED
= 0x10000,
35 C_EWMH_DESKTOP
= 0x20000,
36 C_F_TOPLEFT
= 0x100000,
37 C_F_TOPRIGHT
= 0x200000,
38 C_F_BOTTOMLEFT
= 0x400000,
39 C_F_BOTTOMRIGHT
= 0x800000,
40 C_SB_LEFT
= 0x1000000,
41 C_SB_RIGHT
= 0x2000000,
43 C_SB_BOTTOM
= 0x8000000,
44 /* C_ = 0x10000000, */
45 /* C_ = 0x20000000, */
46 /* C_ = 0x40000000, */
47 C_IGNORE_ALL
= (int)0x80000000,
48 C_FRAME
= (C_F_TOPLEFT
|C_F_TOPRIGHT
|C_F_BOTTOMLEFT
|C_F_BOTTOMRIGHT
),
49 C_SIDEBAR
= (C_SB_LEFT
|C_SB_RIGHT
|C_SB_TOP
|C_SB_BOTTOM
),
50 C_RALL
= (C_R1
|C_R2
|C_R3
|C_R4
|C_R5
),
51 C_LALL
= (C_L1
|C_L2
|C_L3
|C_L4
|C_L5
),
52 C_DECOR
= (C_LALL
|C_RALL
|C_TITLE
|C_FRAME
|C_SIDEBAR
),
53 C_ALL
= (C_WINDOW
|C_TITLE
|C_ICON
|C_ROOT
|C_FRAME
|C_SIDEBAR
|\
54 C_LALL
|C_RALL
|C_EWMH_DESKTOP
),
55 C_MENU_ITEM
= (C_ICON
|C_MENU
)
58 /* ---------------------------- forward declarations ----------------------- */
60 /* ---------------------------- exported variables (globals) --------------- */
62 extern charmap_t win_contexts
[];
64 /* ---------------------------- interface functions ------------------------ */
66 int wcontext_string_to_wcontext(char *in_context
, int *out_context_mask
);
67 char wcontext_wcontext_to_char(win_context_t wcontext
);
68 win_context_t
wcontext_merge_border_wcontext(win_context_t wcontext
);
70 #endif /* WCONTEXT_H */