Move remaining selection mode logic into selextend
[st.git] / st.h
diff --git a/st.h b/st.h
index 9314607..a34e31c 100644 (file)
--- a/st.h
+++ b/st.h
@@ -134,12 +134,6 @@ typedef struct {
        int cursor; /* cursor style */
 } TermWindow;
 
-typedef struct {
-       uint b;
-       uint mask;
-       char *s;
-} MouseShortcut;
-
 typedef struct {
        int mode;
        int type;
@@ -155,12 +149,7 @@ typedef struct {
                int x, y;
        } nb, ne, ob, oe;
 
-       char *primary, *clipboard;
        int alt;
-       struct timespec tclick1;
-       struct timespec tclick2;
-
-       //Atom xtarget;
 } Selection;
 
 typedef union {
@@ -170,23 +159,6 @@ typedef union {
        const void *v;
 } Arg;
 
-typedef struct {
-       uint mod;
-       KeySym keysym;
-       void (*func)(const Arg *);
-       const Arg arg;
-} Shortcut;
-
-typedef struct {
-       KeySym k;
-       uint mask;
-       char *s;
-       /* three valued logic variables: 0 indifferent, 1 on, -1 off */
-       signed char appkey;    /* application keypad */
-       signed char appcursor; /* application cursor */
-       signed char crlf;      /* crlf mode          */
-} Key;
-
 void die(const char *, ...);
 void redraw(void);
 
@@ -200,7 +172,6 @@ void toggleprinter(const Arg *);
 int tattrset(int);
 void tnew(int, int);
 void tresize(int, int);
-void tsetdirt(int, int);
 void tsetdirtattr(int);
 void ttynew(char *, char *, char **);
 size_t ttyread(void);
@@ -212,6 +183,8 @@ void resettitle(void);
 
 void selclear(void);
 void selinit(void);
+void selstart(int, int, int);
+void selextend(int, int, int, int);
 void selnormalize(void);
 int selected(int, int);
 char *getsel(void);
@@ -224,9 +197,7 @@ void *xrealloc(void *, size_t);
 char *xstrdup(char *);
 
 /* Globals */
-extern TermWindow win;
 extern Term term;
-extern Selection sel;
 extern int cmdfd;
 extern pid_t pid;
 extern int oldbutton;