Introduction
Introduction Statistics Contact Development Disclaimer Help
Delay redrawals on palette changes - st - simple terminal
git clone git://git.suckless.org/st
Log
Files
Refs
README
LICENSE
---
commit e823e2308f2a99023032a3966ebb7036a31d305f
parent 2c5edf28ec851907305d73c6218ce75d39f1767f
Author: Santtu Lakkala <[email protected]>
Date: Thu, 17 Feb 2022 16:00:47 +0200
Delay redrawals on palette changes
Build on auto-sync and only mark window dirty on palette changes and let
the event handler do the actual draw.
Diffstat:
M st.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/st.c b/st.c
@@ -1927,7 +1927,7 @@ strhandle(void)
else if (xsetcolorname(defaultfg, p))
fprintf(stderr, "erresc: invalid foreground co…
else
- redraw();
+ tfulldirt();
return;
case 11:
if (narg < 2)
@@ -1940,7 +1940,7 @@ strhandle(void)
else if (xsetcolorname(defaultbg, p))
fprintf(stderr, "erresc: invalid background co…
else
- redraw();
+ tfulldirt();
return;
case 12:
if (narg < 2)
@@ -1953,7 +1953,7 @@ strhandle(void)
else if (xsetcolorname(defaultcs, p))
fprintf(stderr, "erresc: invalid cursor color:…
else
- redraw();
+ tfulldirt();
return;
case 4: /* color set */
if (narg < 3)
@@ -1975,7 +1975,7 @@ strhandle(void)
* TODO if defaultbg color is changed, borders
* are dirty
*/
- redraw();
+ tfulldirt();
}
return;
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.