… | |
… | |
1306 | make_current (); |
1306 | make_current (); |
1307 | |
1307 | |
1308 | dDisp; |
1308 | dDisp; |
1309 | |
1309 | |
1310 | if (ev.xany.window == vt |
1310 | if (ev.xany.window == vt |
|
|
1311 | && SHOULD_INVOKE (HOOK_X_EVENT) |
1311 | && HOOK_INVOKE ((this, HOOK_X_EVENT, DT_XEVENT, &ev, DT_END))) |
1312 | && HOOK_INVOKE ((this, HOOK_X_EVENT, DT_XEVENT, &ev, DT_END))) |
1312 | return; |
1313 | return; |
1313 | |
1314 | |
1314 | // for XQueryPointer |
1315 | // for XQueryPointer |
1315 | Window unused_root, unused_child; |
1316 | Window unused_root, unused_child; |
… | |
… | |
1615 | if ((priv_modes & PrivMode_mouse_report) && !bypass_keystate) |
1616 | if ((priv_modes & PrivMode_mouse_report) && !bypass_keystate) |
1616 | break; |
1617 | break; |
1617 | |
1618 | |
1618 | if (ev.xany.window == vt) |
1619 | if (ev.xany.window == vt) |
1619 | { |
1620 | { |
|
|
1621 | if (SHOULD_INVOKE (HOOK_MOTION_NOTIFY) |
1620 | if (HOOK_INVOKE ((this, HOOK_MOTION_NOTIFY, DT_XEVENT, &ev, DT_END))) |
1622 | && HOOK_INVOKE ((this, HOOK_MOTION_NOTIFY, DT_XEVENT, &ev, DT_END))) |
1621 | ; // nop |
1623 | ; // nop |
1622 | else if (ev.xbutton.state & (Button1Mask | Button3Mask)) |
1624 | else if (ev.xbutton.state & (Button1Mask | Button3Mask)) |
1623 | { |
1625 | { |
1624 | while (XCheckTypedWindowEvent (disp, vt, MotionNotify, &ev)) |
1626 | while (XCheckTypedWindowEvent (disp, vt, MotionNotify, &ev)) |
1625 | ; |
1627 | ; |
… | |
… | |
2778 | } |
2780 | } |
2779 | |
2781 | |
2780 | // scr_add_lines only works for nlines <= nrow - 1. |
2782 | // scr_add_lines only works for nlines <= nrow - 1. |
2781 | if (nlines >= nrow - 1) |
2783 | if (nlines >= nrow - 1) |
2782 | { |
2784 | { |
|
|
2785 | if (!(SHOULD_INVOKE (HOOK_ADD_LINES) |
2783 | if (!HOOK_INVOKE ((this, HOOK_ADD_LINES, DT_WCS_LEN, buf, str - buf, DT_END))) |
2786 | && HOOK_INVOKE ((this, HOOK_ADD_LINES, DT_WCS_LEN, buf, str - buf, DT_END)))) |
2784 | scr_add_lines (buf, str - buf, nlines); |
2787 | scr_add_lines (buf, str - buf, nlines); |
2785 | |
2788 | |
2786 | nlines = 0; |
2789 | nlines = 0; |
2787 | str = buf; |
2790 | str = buf; |
2788 | eol = str + min (ncol, UBUFSIZ); |
2791 | eol = str + min (ncol, UBUFSIZ); |
… | |
… | |
2803 | |
2806 | |
2804 | seq_begin = cmdbuf_ptr; |
2807 | seq_begin = cmdbuf_ptr; |
2805 | ch = next_char (); |
2808 | ch = next_char (); |
2806 | } |
2809 | } |
2807 | |
2810 | |
|
|
2811 | if (!(SHOULD_INVOKE (HOOK_ADD_LINES) |
2808 | if (!HOOK_INVOKE ((this, HOOK_ADD_LINES, DT_WCS_LEN, buf, str - buf, DT_END))) |
2812 | && HOOK_INVOKE ((this, HOOK_ADD_LINES, DT_WCS_LEN, buf, str - buf, DT_END)))) |
2809 | scr_add_lines (buf, str - buf, nlines); |
2813 | scr_add_lines (buf, str - buf, nlines); |
2810 | |
2814 | |
2811 | /* |
2815 | /* |
2812 | * If there have been a lot of new lines, then update the screen |
2816 | * If there have been a lot of new lines, then update the screen |
2813 | * What the heck I'll cheat and only refresh less than every page-full. |
2817 | * What the heck I'll cheat and only refresh less than every page-full. |