diff options
author | 2015-12-22 19:47:12 -0500 | |
---|---|---|
committer | 2015-12-22 19:47:12 -0500 | |
commit | 23df7ed502b20bf264d85af2aef8c933e393f9ee (patch) | |
tree | c906072a921012eda52611a4dedd9e3e84e46ba2 /swaybar/main.c | |
parent | Merge pull request #394 from progandy/i3bar-json-protocol (diff) | |
parent | Stop swaybar from not rendering after the first go around (diff) | |
download | sway-23df7ed502b20bf264d85af2aef8c933e393f9ee.tar.gz sway-23df7ed502b20bf264d85af2aef8c933e393f9ee.tar.zst sway-23df7ed502b20bf264d85af2aef8c933e393f9ee.zip |
Merge pull request #396 from crondog/fixbar
Stop swaybar from not rendering after the first go around
Diffstat (limited to 'swaybar/main.c')
-rw-r--r-- | swaybar/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/swaybar/main.c b/swaybar/main.c index 75d043b0..74930075 100644 --- a/swaybar/main.c +++ b/swaybar/main.c | |||
@@ -690,10 +690,9 @@ void poll_for_update() { | |||
690 | if (dirty && window_prerender(window) && window->cairo) { | 690 | if (dirty && window_prerender(window) && window->cairo) { |
691 | render(); | 691 | render(); |
692 | window_render(window); | 692 | window_render(window); |
693 | } | 693 | if (wl_display_dispatch(registry->display) == -1) { |
694 | 694 | break; | |
695 | if (wl_display_dispatch(registry->display) == -1) { | 695 | } |
696 | break; | ||
697 | } | 696 | } |
698 | 697 | ||
699 | dirty = false; | 698 | dirty = false; |