summaryrefslogtreecommitdiff
path: root/src/goma.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2026-05-29 11:23:54 +0200
committerJoel Klinghed <the_jk@opera.com>2026-05-29 11:23:54 +0200
commit7efff8c560aa0c4a834201da48f53e709519c14b (patch)
treef5f64a35eae4d9f4bcfee1f421b70d869b55b970 /src/goma.cc
parenta6ac90c83edbade279cccfdb6d8ca02d8e5a60b8 (diff)
Improve redraw
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;