From 0e158c508f904ab94688cc576517b67c7cd0de6c Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 2 Apr 2020 17:37:52 +0100 Subject: [PATCH] new backend: clear background if there is no wallpaper So windows won't left a trail when you move them, because they are drawn over previously drawn stuff. Signed-off-by: Yuxuan Shui --- src/backend/backend.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/backend.c b/src/backend/backend.c index f03e1ff..3593919 100644 --- a/src/backend/backend.c +++ b/src/backend/backend.c @@ -153,6 +153,9 @@ void paint_all_new(session_t *ps, struct managed_win *t, bool ignore_damage) { if (ps->root_image) { ps->backend_data->ops->compose(ps->backend_data, ps->root_image, 0, 0, ®_paint, ®_visible); + } else { + ps->backend_data->ops->fill(ps->backend_data, (struct color){0, 0, 0, 1}, + ®_paint); } // Windows are sorted from bottom to top