summaryrefslogtreecommitdiff
path: root/src/goma.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/goma.cc')
-rw-r--r--src/goma.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/goma.cc b/src/goma.cc
index 47f0a43..bc7cdd4 100644
--- a/src/goma.cc
+++ b/src/goma.cc
@@ -211,9 +211,12 @@ private:
}
void draw_content(cairo_t* cairo, PangoLayout* layout,
- uint16_t w, uint16_t h) override {
+ uint16_t w, uint16_t h,
+ std::vector<xcb_rectangle_t>& dirty) override {
if (!poll_) return;
auto state = poll_->state();
+ fill_background(cairo, {0, 0, w, h});
+ dirty.push_back({0, 0, w, h});
auto const pad_x = std::min(9.0, w / 20.0), pad_y = pad_x;
auto const margin_x = std::min(7.5, w / 20.0), margin_y = margin_x;