--- rxvt-unicode/src/rxvt.h 2005/02/17 12:06:21 1.148 +++ rxvt-unicode/src/rxvt.h 2005/02/19 01:07:58 1.150 @@ -21,6 +21,10 @@ #include "iom.h" #include "salloc.h" +#if ENABLE_FRILLS +# define ENABLE_XEMBED 1 +#endif + /* ***************************************************************************** * SYSTEM HACKS @@ -179,6 +183,29 @@ } MWMHints; #endif +#if ENABLE_XEMBED +// XEMBED messages +# define XEMBED_EMBEDDED_NOTIFY 0 +# define XEMBED_WINDOW_ACTIVATE 1 +# define XEMBED_WINDOW_DEACTIVATE 2 +# define XEMBED_REQUEST_FOCUS 3 +# define XEMBED_FOCUS_IN 4 +# define XEMBED_FOCUS_OUT 5 +# define XEMBED_FOCUS_NEXT 6 +# define XEMBED_FOCUS_PREV 7 + +# define XEMBED_MODALITY_ON 10 +# define XEMBED_MODALITY_OFF 11 +# define XEMBED_REGISTER_ACCELERATOR 12 +# define XEMBED_UNREGISTER_ACCELERATOR 13 +# define XEMBED_ACTIVATE_ACCELERATOR 14 + +// XEMBED detail code +# define XEMBED_FOCUS_CURRENT 0 +# define XEMBED_FOCUS_FIRST 1 +# define XEMBED_FOCUS_LAST 2 +#endif + /* ***************************************************************************** * NORMAL DEFINES @@ -610,6 +637,9 @@ Rs_int_bwidth, Rs_borderLess, Rs_lineSpace, + Rs_pty_fd, +#endif +#if ENABLE_XEMBED Rs_embed, #endif Rs_cutchars, @@ -646,7 +676,8 @@ XA_TIMESTAMP, XA_VT_SELECTION, XA_INCR, - XA_WMDELETEWINDOW, + XA_WM_PROTOCOLS, + XA_WM_DELETE_WINDOW, XA_CLIPBOARD, #if ENABLE_FRILLS XA_NET_WM_PID, @@ -665,6 +696,9 @@ XA_DNDPROTOCOL, XA_DNDSELECTION, #endif +#if ENABLE_XEMBED + XA_XEMBED, +#endif NUM_XA }; @@ -1347,6 +1381,8 @@ void mouse_report (XButtonEvent &ev); void button_press (XButtonEvent &ev); void button_release (XButtonEvent &ev); + void focus_in (); + void focus_out (); int check_our_parents (); #ifdef PRINTPIPE FILE *popen_printer ();