From 6c05890fd2a68220dae231d0862626584313f753 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 6 Sep 2024 17:39:29 +0200 Subject: [PATCH] ui/Window: use wbkgdset() instead of wbkgd() Unlike wbkgd(), wbkgdset() does not clear the screen. We don't need that because ncmpc repaints everything anyway. --- src/ui/Window.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Window.hxx b/src/ui/Window.hxx index 4cee902e..a0889c4b 100644 --- a/src/ui/Window.hxx +++ b/src/ui/Window.hxx @@ -45,7 +45,7 @@ struct Window { } void SetBackgroundStyle(Style style) const noexcept { - wbkgd(w, COLOR_PAIR(unsigned(style))); + wbkgdset(w, COLOR_PAIR(unsigned(style))); } void Move(Point p) const noexcept {