--- rxvt-unicode/src/rxvt.h 2004/07/26 18:01:19 1.78 +++ rxvt-unicode/src/rxvt.h 2004/08/08 14:44:21 1.88 @@ -11,6 +11,9 @@ #include #include #include +#ifndef NO_FRILLS +#include +#endif #include "encoding.h" #include "defaultfont.h" @@ -133,6 +136,16 @@ ? 0 \ : min ((val), (((uint16_t)-1)>>1))) +#ifndef NO_FRILLS +typedef struct _mwmhints { + CARD32 flags; + CARD32 functions; + CARD32 decorations; + INT32 input_mode; + CARD32 status; +} MWMHints; +#endif + /* ***************************************************************************** * NORMAL DEFINES @@ -268,10 +281,6 @@ FAST_REFRESH = 1<<0, /* Fully exposed window */ SLOW_REFRESH = 1<<1, /* Partially exposed window */ SMOOTH_REFRESH = 1<<2, /* Do sync'ing to make it smooth */ -#if 0 - REFRESH_BOUNDS = 1<<3 -#endif - REFRESH_BOUNDS = 0 /* only required for old int_bwidth code. */ //TODO: remove this and all depending code }; #ifdef NO_SECONDARY_SCREEN @@ -535,6 +544,7 @@ #ifndef NO_FRILLS Rs_ext_bwidth, Rs_int_bwidth, + Rs_borderLess, #endif Rs_scrollBar_thickness, #ifndef NO_LINESPACE @@ -556,6 +566,12 @@ #ifndef NO_BOLD_UNDERLINE_REVERSE Rs_realBold, #endif +#ifdef OFF_FOCUS_FADING + Rs_fade, +#endif +#ifdef TINTING + Rs_shade, +#endif NUM_RESOURCES }; @@ -619,10 +635,7 @@ # define PrivMode_Default (PrivMode_Autowrap|PrivMode_aplKP|PrivMode_ShiftKeys|PrivMode_VisibleCursor) #endif -#define XDEPTH display->depth -#define XCMAP display->cmap -#define XVISUAL display->visual - +// do not change these constants lightly, there are many interdependencies #define IMBUFSIZ 128 // input modifier buffer sizes #define KBUFSZ 512 // size of keyboard mapping buffer #define CBUFSIZ 4096 // size of command buffer @@ -632,6 +645,33 @@ # define PATH_MAX 16384 #endif +/* Motif window hints */ +#define MWM_HINTS_FUNCTIONS (1L << 0) +#define MWM_HINTS_DECORATIONS (1L << 1) +#define MWM_HINTS_INPUT_MODE (1L << 2) +#define MWM_HINTS_STATUS (1L << 3) +/* bit definitions for MwmHints.functions */ +#define MWM_FUNC_ALL (1L << 0) +#define MWM_FUNC_RESIZE (1L << 1) +#define MWM_FUNC_MOVE (1L << 2) +#define MWM_FUNC_MINIMIZE (1L << 3) +#define MWM_FUNC_MAXIMIZE (1L << 4) +#define MWM_FUNC_CLOSE (1L << 5) +/* bit definitions for MwmHints.decorations */ +#define MWM_DECOR_ALL (1L << 0) +#define MWM_DECOR_BORDER (1L << 1) +#define MWM_DECOR_RESIZEH (1L << 2) +#define MWM_DECOR_TITLE (1L << 3) +#define MWM_DECOR_MENU (1L << 4) +#define MWM_DECOR_MINIMIZE (1L << 5) +#define MWM_DECOR_MAXIMIZE (1L << 6) +/* bit definitions for MwmHints.inputMode */ +#define MWM_INPUT_MODELESS 0 +#define MWM_INPUT_PRIMARY_APPLICATION_MODAL 1 +#define MWM_INPUT_SYSTEM_MODAL 2 +#define MWM_INPUT_FULL_APPLICATION_MODAL 3 +#define PROP_MWM_HINTS_ELEMENTS 5 + /* ***************************************************************************** * MACRO DEFINES @@ -958,7 +998,6 @@ #endif refresh_count, refresh_limit, - fnum, /* logical font number */ last_bot, /* scrollbar last bottom position */ last_top, /* scrollbar last top position */ last_state, /* scrollbar last state */ @@ -1128,8 +1167,9 @@ xevent_watcher menubar_ev; #endif - void check_cb (check_watcher &w); check_watcher check_ev; + void check_cb (check_watcher &w); check_watcher check_ev; void destroy_cb (time_watcher &w); time_watcher destroy_ev; + void flush_cb (time_watcher &w); time_watcher flush_ev; void pty_cb (io_watcher &w, short revents); io_watcher pty_ev; @@ -1155,8 +1195,8 @@ #ifdef POINTER_BLANK void pointer_cb (time_watcher &w); time_watcher pointer_ev; void pointer_blank (); - void pointer_unblank (); #endif + void pointer_unblank (); void tt_printf (const char *fmt,...); void tt_write (const unsigned char *data, unsigned int len);