[hackers] [st][PATCH 13/23] Move oldbutton var into x.c

From: Devin J. Pohly <djpohly_AT_gmail.com>
Date: Sun, 24 Sep 2017 16:11:35 -0500

---
 st.c | 1 -
 st.h | 1 -
 x.c  | 2 ++
 3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/st.c b/st.c
index 0093642..9b92bc6 100644
--- a/st.c
+++ b/st.c
_AT_@ -201,7 +201,6 @@ char *opt_io    = NULL;
 char *opt_line  = NULL;
 char *opt_name  = NULL;
 char *opt_title = NULL;
-int oldbutton   = 3; /* button event on startup: 3 = release */
 
 static CSIEscape csiescseq;
 static STREscape strescseq;
diff --git a/st.h b/st.h
index 980c353..4b21153 100644
--- a/st.h
+++ b/st.h
_AT_@ -222,7 +222,6 @@ extern char *opt_io;
 extern char *opt_line;
 extern char *opt_name;
 extern char *opt_title;
-extern int oldbutton;
 
 /* config.h globals */
 extern char font[];
diff --git a/x.c b/x.c
index dc851d8..c2faa9c 100644
--- a/x.c
+++ b/x.c
_AT_@ -184,6 +184,8 @@ static char *usedfont = NULL;
 static double usedfontsize = 0;
 static double defaultfontsize = 0;
 
+static int oldbutton = 3; /* button event on startup: 3 = release */
+
 int
 x2col(int x)
 {
-- 
2.14.1
Received on Sun Sep 24 2017 - 23:11:35 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 24 2017 - 23:25:28 CEST