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 <yshuiv7@gmail.com>
This commit is contained in:
parent
85086bc984
commit
0e158c508f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue