diff options
author | Santtu Lakkala <inz@inz.fi> | 2022-02-17 16:00:47 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-05-08 00:37:02 +0200 |
commit | c7763a18599984abb34beb18b674885809bcf2bb (patch) | |
tree | 82d2239070c3e567394de67269bc616f09d1dc6a | |
parent | f7133d6a242aff193540b488afca46589c23200c (diff) |
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.
-rw-r--r-- | st.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2042,7 +2042,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) @@ -2055,7 +2055,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) @@ -2068,7 +2068,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) @@ -2090,7 +2090,7 @@ strhandle(void) * TODO if defaultbg color is changed, borders * are dirty */ - redraw(); + tfulldirt(); } return; } |