Move X-specific selection info into XSelection

Data about PRIMARY/CLIPBOARD and clicks are part of the front-end, not
the terminal.

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
This commit is contained in:
Devin J. Pohly
2018-02-21 22:56:02 -06:00
parent 138caf294e
commit 5683b1f80c
3 changed files with 19 additions and 21 deletions

4
st.c
View File

@ -365,13 +365,9 @@ base64dec(const char *src)
void
selinit(void)
{
clock_gettime(CLOCK_MONOTONIC, &sel.tclick1);
clock_gettime(CLOCK_MONOTONIC, &sel.tclick2);
sel.mode = SEL_IDLE;
sel.snap = 0;
sel.ob.x = -1;
sel.primary = NULL;
sel.clipboard = NULL;
}
int