Skip to content

Commit

Permalink
ui/Window: use wbkgdset() instead of wbkgd()
Browse files Browse the repository at this point in the history
Unlike wbkgd(), wbkgdset() does not clear the screen.  We don't need
that because ncmpc repaints everything anyway.
  • Loading branch information
MaxKellermann committed Sep 6, 2024
1 parent a12b746 commit 6c05890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/Window.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6c05890

Please sign in to comment.