Fluxbox: The Deco Bitmask Mystery Solved!
Thursday, 14. May 2009, 07:19:50
What's a bitmask? I kept asking. What does "1" to 1<<10 MEAN? What am I supposed to put? Each bit-property is given a value that's based on a power of 2 in ascending order:[Deco] {NONE|NORMAL|TOOL|TINY|BORDER|TAB} Specify the decoration state. There are several predefined decoration sets:
A bitmask can also be used for fine-grained control. The bits are (from "1" to 1<<10): titlebar, handle/grips, border, iconify button, maximize button, close button, menu enabled, sticky button, shade button, tabbing enabled, focus enabled.
- NORMAL - standard decorations
- NONE - no decorations
- BORDER - like NONE except keep the X window border
- TINY - titlebar with an iconify button
- TOOL - titlebar only
- TAB - like NONE except show external tabs only
| Property | Value |
|---|---|
| titlebar | 1 |
| handle/grips | 2 |
| border | 4 |
| minimize button (called iconify) | 8 |
| maximize button | 16 |
| close button | 32 |
| enable window menu | 64 |
| sticky button | 128 |
| shade button | 256 |
| enable tabbing | 512 |
| enable focus | 1024 |








