… | |
… | |
598 | #define PrivMode_TtyOutputInh (1UL<<15) |
598 | #define PrivMode_TtyOutputInh (1UL<<15) |
599 | #define PrivMode_Keypress (1UL<<16) |
599 | #define PrivMode_Keypress (1UL<<16) |
600 | #define PrivMode_smoothScroll (1UL<<17) |
600 | #define PrivMode_smoothScroll (1UL<<17) |
601 | #define PrivMode_vt52 (1UL<<18) |
601 | #define PrivMode_vt52 (1UL<<18) |
602 | #define PrivMode_LFNL (1UL<<19) |
602 | #define PrivMode_LFNL (1UL<<19) |
|
|
603 | #define PrivMode_MouseBtnEvent (1UL<<20) |
|
|
604 | #define PrivMode_MouseAnyEvent (1UL<<21) |
603 | /* too annoying to implement X11 highlight tracking */ |
605 | /* too annoying to implement X11 highlight tracking */ |
604 | /* #define PrivMode_MouseX11Track (1LU<<20) */ |
606 | /* #define PrivMode_MouseX11Track (1LU<<20) */ |
605 | |
607 | |
606 | #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) |
608 | #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent) |
607 | |
609 | |
608 | #ifdef ALLOW_132_MODE |
610 | #ifdef ALLOW_132_MODE |
609 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
611 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
610 | #else |
612 | #else |
611 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
613 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
… | |
… | |
924 | last_state, /* scrollbar last state */ |
926 | last_state, /* scrollbar last state */ |
925 | scrollbar_len, |
927 | scrollbar_len, |
926 | window_vt_x, |
928 | window_vt_x, |
927 | window_vt_y, |
929 | window_vt_y, |
928 | window_sb_x, |
930 | window_sb_x, |
|
|
931 | mouse_row, |
|
|
932 | mouse_col, |
929 | # ifdef POINTER_BLANK |
933 | # ifdef POINTER_BLANK |
930 | pointerBlankDelay, |
934 | pointerBlankDelay, |
931 | # endif |
935 | # endif |
932 | allowedxerror; |
936 | allowedxerror; |
933 | /* ---------- */ |
937 | /* ---------- */ |
… | |
… | |
1039 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1); |
1043 | void iso14755_51 (unicode_t ch, rend_t r = DEFAULT_RSTYLE, int x = 0, int y = -1); |
1040 | void iso14755_54 (int x, int y); |
1044 | void iso14755_54 (int x, int y); |
1041 | # endif |
1045 | # endif |
1042 | #endif |
1046 | #endif |
1043 | |
1047 | |
1044 | long vt_emask, vt_emask_perl, vt_emask_xim; |
1048 | long vt_emask, vt_emask_perl, vt_emask_xim, vt_emask_mouse; |
1045 | |
1049 | |
1046 | void vt_select_input () const NOTHROW |
1050 | void vt_select_input () const NOTHROW |
1047 | { |
1051 | { |
1048 | XSelectInput (dpy, vt, vt_emask | vt_emask_perl | vt_emask_xim); |
1052 | XSelectInput (dpy, vt, vt_emask | vt_emask_perl | vt_emask_xim | vt_emask_mouse); |
1049 | } |
1053 | } |
1050 | |
1054 | |
1051 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
1055 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
1052 | void rootwin_cb (XEvent &xev); |
1056 | void rootwin_cb (XEvent &xev); |
1053 | xevent_watcher rootwin_ev; |
1057 | xevent_watcher rootwin_ev; |