From: Roberto E. Vargas Caballero Date: Sun, 23 Jun 2013 10:13:26 +0000 (+0200) Subject: Remove unneded call to draw X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=90c6f055b637a58da0381a21b4a290ce26f56d8f;p=st.git Remove unneded call to draw 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. --- diff --git a/st.c b/st.c index 96111a0..2809592 100644 --- a/st.c +++ b/st.c @@ -916,7 +916,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;