diff options
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -390,7 +390,7 @@ mousereport(XEvent *e) | |||
390 | return; | 390 | return; |
391 | } | 391 | } |
392 | 392 | ||
393 | ttywrite(buf, len); | 393 | ttywrite(buf, len, 0); |
394 | } | 394 | } |
395 | 395 | ||
396 | void | 396 | void |
@@ -408,7 +408,7 @@ bpress(XEvent *e) | |||
408 | for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) { | 408 | for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) { |
409 | if (e->xbutton.button == ms->b | 409 | if (e->xbutton.button == ms->b |
410 | && match(ms->mask, e->xbutton.state)) { | 410 | && match(ms->mask, e->xbutton.state)) { |
411 | ttysend(ms->s, strlen(ms->s)); | 411 | ttywrite(ms->s, strlen(ms->s), 1); |
412 | return; | 412 | return; |
413 | } | 413 | } |
414 | } | 414 | } |
@@ -520,10 +520,10 @@ selnotify(XEvent *e) | |||
520 | } | 520 | } |
521 | 521 | ||
522 | if (IS_SET(MODE_BRCKTPASTE) && ofs == 0) | 522 | if (IS_SET(MODE_BRCKTPASTE) && ofs == 0) |
523 | ttywrite("\033[200~", 6); | 523 | ttywrite("\033[200~", 6, 0); |
524 | ttysend((char *)data, nitems * format / 8); | 524 | ttywrite((char *)data, nitems * format / 8, 1); |
525 | if (IS_SET(MODE_BRCKTPASTE) && rem == 0) | 525 | if (IS_SET(MODE_BRCKTPASTE) && rem == 0) |
526 | ttywrite("\033[201~", 6); | 526 | ttywrite("\033[201~", 6, 0); |
527 | XFree(data); | 527 | XFree(data); |
528 | /* number of 32-bit chunks returned */ | 528 | /* number of 32-bit chunks returned */ |
529 | ofs += nitems * format / 32; | 529 | ofs += nitems * format / 32; |
@@ -1634,12 +1634,12 @@ focus(XEvent *ev) | |||
1634 | win.state |= WIN_FOCUSED; | 1634 | win.state |= WIN_FOCUSED; |
1635 | xseturgency(0); | 1635 | xseturgency(0); |
1636 | if (IS_SET(MODE_FOCUS)) | 1636 | if (IS_SET(MODE_FOCUS)) |
1637 | ttywrite("\033[I", 3); | 1637 | ttywrite("\033[I", 3, 0); |
1638 | } else { | 1638 | } else { |
1639 | XUnsetICFocus(xw.xic); | 1639 | XUnsetICFocus(xw.xic); |
1640 | win.state &= ~WIN_FOCUSED; | 1640 | win.state &= ~WIN_FOCUSED; |
1641 | if (IS_SET(MODE_FOCUS)) | 1641 | if (IS_SET(MODE_FOCUS)) |
1642 | ttywrite("\033[O", 3); | 1642 | ttywrite("\033[O", 3, 0); |
1643 | } | 1643 | } |
1644 | } | 1644 | } |
1645 | 1645 | ||
@@ -1714,7 +1714,7 @@ kpress(XEvent *ev) | |||
1714 | 1714 | ||
1715 | /* 2. custom keys from config.h */ | 1715 | /* 2. custom keys from config.h */ |
1716 | if ((customkey = kmap(ksym, e->state))) { | 1716 | if ((customkey = kmap(ksym, e->state))) { |
1717 | ttysend(customkey, strlen(customkey)); | 1717 | ttywrite(customkey, strlen(customkey), 1); |
1718 | return; | 1718 | return; |
1719 | } | 1719 | } |
1720 | 1720 | ||
@@ -1733,7 +1733,7 @@ kpress(XEvent *ev) | |||
1733 | len = 2; | 1733 | len = 2; |
1734 | } | 1734 | } |
1735 | } | 1735 | } |
1736 | ttysend(buf, len); | 1736 | ttywrite(buf, len, 1); |
1737 | } | 1737 | } |
1738 | 1738 | ||
1739 | 1739 | ||