do not clearscreen when the window is dirty - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
(HTM) git clone git://git.codemadness.org/sfeed_curses
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8434b8a25e88b432533280dc138369b65410ef9c
(DIR) parent 260ffbb1e60b8d2600b3467c98e7ec24a6e0f9a2
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 31 Mar 2021 18:15:07 +0200
do not clearscreen when the window is dirty
When the window is set to dirty (win.dirty) then all things will/should be
redrawn cleanly. This prevents some flickering in xterm and urxvt on
clearscreen, like on a window resize or when adjusting the sidebar.
Diffstat:
M sfeed_curses.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
(DIR) diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -1732,10 +1732,8 @@ draw(void)
struct item *item;
size_t i;
- if (win.dirty) {
+ if (win.dirty)
win.dirty = 0;
- clearscreen();
- }
for (i = 0; i < LEN(panes); i++) {
pane_setfocus(&panes[i], i == selpane);