mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
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.
This commit is contained in:
parent
ebbac77d74
commit
90c6f055b6
1 changed files with 0 additions and 1 deletions
1
st.c
1
st.c
|
@ -916,7 +916,6 @@ bpress(XEvent *e) {
|
||||||
if(sel.snap != 0) {
|
if(sel.snap != 0) {
|
||||||
sel.mode++;
|
sel.mode++;
|
||||||
tsetdirt(sel.nb.y, sel.ne.y);
|
tsetdirt(sel.nb.y, sel.ne.y);
|
||||||
draw();
|
|
||||||
}
|
}
|
||||||
sel.tclick2 = sel.tclick1;
|
sel.tclick2 = sel.tclick1;
|
||||||
sel.tclick1 = now;
|
sel.tclick1 = now;
|
||||||
|
|
Loading…
Reference in a new issue