summaryrefslogtreecommitdiff
path: root/src/ncmpcpp.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-05-19 16:12:33 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2009-05-19 16:12:33 +0200
commit2c3c44994ed598b4f088ec6a2d55eb88951133e2 (patch)
treefcc4d828aedd83e685a6901047a068d774748ae1 /src/ncmpcpp.cpp
parentc22653fc385e5072e06ad1570fd66761a533737b (diff)
redraw statusbar after resize if player is stopped
Diffstat (limited to 'src/ncmpcpp.cpp')
-rw-r--r--src/ncmpcpp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp
index 804952aa..fb01ecb2 100644
--- a/src/ncmpcpp.cpp
+++ b/src/ncmpcpp.cpp
@@ -379,6 +379,8 @@ int main(int argc, char *argv[])
myScreen->Refresh();
RedrawStatusbar = 1;
StatusChanges changes;
+ if (Mpd->GetState() < psPlay)
+ changes.PlayerState = 1;
changes.StatusFlags = 1; // force status update
NcmpcppStatusChanged(Mpd, changes, NULL);
}