mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-02 07:15:31 -04:00
Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhere
This commit is contained in:
parent
2f6b8d232f
commit
7379198f4a
4 changed files with 16 additions and 13 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#define LOG_ENABLE_DBG 0
|
||||
#include "log.h"
|
||||
#include "grid.h"
|
||||
#include "vt.h"
|
||||
|
||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||
#define max(x, y) ((x) > (y) ? (x) : (y))
|
||||
|
|
@ -337,7 +338,7 @@ report_mouse_click(struct terminal *term, int encoded_button, int row, int col,
|
|||
return;
|
||||
}
|
||||
|
||||
write(term->ptmx, response, strlen(response));
|
||||
vt_to_slave(term, response, strlen(response));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue