… | |
… | |
15 | #endif |
15 | #endif |
16 | |
16 | |
17 | #if ENABLE_FRILLS |
17 | #if ENABLE_FRILLS |
18 | # define ENABLE_XEMBED 1 |
18 | # define ENABLE_XEMBED 1 |
19 | # define ENABLE_EWMH 1 |
19 | # define ENABLE_EWMH 1 |
|
|
20 | # define ENABLE_XIM_ONTHESPOT 1 |
20 | # define CURSOR_BLINK 1 |
21 | # define CURSOR_BLINK 1 |
21 | #else |
22 | #else |
22 | # define ENABLE_MINIMAL 1 |
23 | # define ENABLE_MINIMAL 1 |
23 | #endif |
24 | #endif |
24 | |
25 | |
… | |
… | |
736 | ***************************************************************************** |
737 | ***************************************************************************** |
737 | */ |
738 | */ |
738 | #define dLocal(type,name) type const name = this->name |
739 | #define dLocal(type,name) type const name = this->name |
739 | #define dDisp Display *disp = this->display->display |
740 | #define dDisp Display *disp = this->display->display |
740 | |
741 | |
|
|
742 | // for speed reasons, we assume that all latin1 characters |
|
|
743 | // are single-width (the first unicdoe combining character |
|
|
744 | // is actually 0x300, but ascii is what matters most). |
|
|
745 | #define WCWIDTH(c) ((c) < 0x100 ? 1 : wcwidth (c)) |
|
|
746 | |
741 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
747 | /* convert pixel dimensions to row/column values. Everything as int32_t */ |
742 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
748 | #define Pixel2Col(x) Pixel2Width((int32_t)(x)) |
743 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
749 | #define Pixel2Row(y) Pixel2Height((int32_t)(y)) |
744 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth) |
750 | #define Pixel2Width(x) ((int32_t)(x) / (int32_t)fwidth) |
745 | #define Pixel2Height(y) ((int32_t)(y) / (int32_t)fheight) |
751 | #define Pixel2Height(y) ((int32_t)(y) / (int32_t)fheight) |