[dev] [PATCH] Remove unneded call to draw

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Sun, 23 Jun 2013 12:17:56 +0200

From: "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com>

draw is the function which update the Xwindow with the information st has,
and it is designed in a way that it must be called once in the main loop
(run function), and calling it in other places it is a waste of time.
---
 st.c |    1 -
 1 file changed, 1 deletion(-)
diff --git a/st.c b/st.c
index 91a6f8b..43bae1c 100644
--- a/st.c
+++ b/st.c
_AT_@ -927,7 +927,6 @@ bpress(XEvent *e) {
 		if(sel.snap != 0) {
 			sel.mode++;
 			tsetdirt(sel.nb.y, sel.ne.y);
-			draw();
 		}
 		sel.tclick2 = sel.tclick1;
 		sel.tclick1 = now;
-- 
1.7.10.4
Received on Sun Jun 23 2013 - 12:17:56 CEST

This archive was generated by hypermail 2.3.0 : Sun Jun 23 2013 - 12:24:05 CEST