diff options
author | Santtu Lakkala <inz@inz.fi> | 2022-02-17 16:00:47 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-02-18 13:03:37 +0100 |
commit | e823e2308f2a99023032a3966ebb7036a31d305f (patch) | |
tree | 7ad0328cbf436f9b23cc71f2e629f50140fc8533 /st.c | |
parent | 2c5edf28ec851907305d73c6218ce75d39f1767f (diff) | |
download | st-e823e2308f2a99023032a3966ebb7036a31d305f.tar.gz st-e823e2308f2a99023032a3966ebb7036a31d305f.tar.bz2 st-e823e2308f2a99023032a3966ebb7036a31d305f.zip |
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 (limited to 'st.c')
-rw-r--r-- | st.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1927,7 +1927,7 @@ strhandle(void) else if (xsetcolorname(defaultfg, p)) fprintf(stderr, "erresc: invalid foreground color: %s\n", p); 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 color: %s\n", p); 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: %s\n", p); 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; } |