… | |
… | |
823 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
823 | # define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) |
824 | #else |
824 | #else |
825 | # define XPMClearArea(a, b, c, d, e, f, g) |
825 | # define XPMClearArea(a, b, c, d, e, f, g) |
826 | #endif |
826 | #endif |
827 | |
827 | |
828 | #ifdef DEBUG_CMD |
|
|
829 | # define D_CMD(x) fprintf x ; fputc('\n', stderr) |
|
|
830 | #else |
|
|
831 | # define D_CMD(x) |
|
|
832 | #endif |
|
|
833 | #ifdef DEBUG_INIT |
|
|
834 | # define D_INIT(x) fprintf x ; fputc('\n', stderr) |
|
|
835 | #else |
|
|
836 | # define D_INIT(x) |
|
|
837 | #endif |
|
|
838 | #ifdef DEBUG_MAIN |
|
|
839 | # define D_MAIN(x) fprintf x ; fputc('\n', stderr) |
|
|
840 | #else |
|
|
841 | # define D_MAIN(x) |
|
|
842 | #endif |
|
|
843 | #ifdef DEBUG_SIZE |
|
|
844 | # define D_SIZE(x) fprintf x ; fputc('\n', stderr) |
|
|
845 | #else |
|
|
846 | # define D_SIZE(x) |
|
|
847 | #endif |
|
|
848 | |
|
|
849 | typedef callback1<void, const char *> log_callback; |
828 | typedef callback1<void, const char *> log_callback; |
850 | typedef callback1<int, int> getfd_callback; |
829 | typedef callback1<int, int> getfd_callback; |
851 | |
830 | |
852 | #define SET_LOCALE(locale) rxvt_set_locale (locale) |
831 | #define SET_LOCALE(locale) rxvt_set_locale (locale) |
853 | extern bool rxvt_set_locale (const char *locale) NOTHROW; |
832 | extern bool rxvt_set_locale (const char *locale) NOTHROW; |
… | |
… | |
1157 | #endif |
1136 | #endif |
1158 | |
1137 | |
1159 | // modifies first argument(!) |
1138 | // modifies first argument(!) |
1160 | void paste (char *data, unsigned int len) NOTHROW; |
1139 | void paste (char *data, unsigned int len) NOTHROW; |
1161 | |
1140 | |
1162 | long vt_emask, vt_emask_perl; |
1141 | long vt_emask, vt_emask_perl, vt_emask_xim; |
1163 | |
1142 | |
1164 | void vt_select_input () const NOTHROW |
1143 | void vt_select_input () const NOTHROW |
1165 | { |
1144 | { |
1166 | XSelectInput (display->display, vt, vt_emask | vt_emask_perl); |
1145 | XSelectInput (display->display, vt, vt_emask | vt_emask_perl | vt_emask_xim); |
1167 | } |
1146 | } |
1168 | |
1147 | |
1169 | #if TRANSPARENT |
1148 | #if TRANSPARENT |
1170 | void rootwin_cb (XEvent &xev); |
1149 | void rootwin_cb (XEvent &xev); |
1171 | xevent_watcher rootwin_ev; |
1150 | xevent_watcher rootwin_ev; |