diff options
author | Santtu Lakkala <inz@inz.fi> | 2022-02-17 16:00:47 +0200 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-01-12 08:21:56 +0530 |
commit | ae4f71321e0790d7adffbaf371dea75f5c4890d2 (patch) | |
tree | 0aa2c92b7d91da48ddac4d0f9ed6a19a731eea3b /st.c | |
parent | 5d519b31b595bf1a586b601136e65c9a9b9ca10f (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.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1989,7 +1989,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) @@ -2002,7 +2002,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) @@ -2015,7 +2015,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) @@ -2037,7 +2037,7 @@ strhandle(void) * TODO if defaultbg color is changed, borders * are dirty */ - redraw(); + tfulldirt(); } return; } |