aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2025-01-05 03:26:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-01-09 06:53:50 +0000
commitf0253633d3cdde994b48c25692707e1df2f1e1e7 (patch)
tree63dc52053b9f78c6355e36e8c3bdbc7185d843e1
parentMerge branch 'ignore-title-and-app-id-report-queries' (diff)
render: Expose render_overlay
This function updates the overlay that foot uses. It will be used to update the overlay when the flash effect ends.
-rw-r--r--pgo/pgo.c2
-rw-r--r--render.c2
-rw-r--r--render.h2
3 files changed, 5 insertions, 1 deletions
diff --git a/pgo/pgo.c b/pgo/pgo.c
index aab18847..24154277 100644
--- a/pgo/pgo.c
+++ b/pgo/pgo.c
@@ -72,6 +72,8 @@ void render_refresh_title(struct terminal *term) {}
void render_refresh_app_id(struct terminal *term) {}
void render_refresh_icon(struct terminal *term) {}
+void render_overlay(struct terminal *term) {}
+
bool
render_xcursor_is_valid(const struct seat *seat, const char *cursor)
{
diff --git a/render.c b/render.c
index 5a924743..020dee79 100644
--- a/render.c
+++ b/render.c
@@ -1862,7 +1862,7 @@ render_overlay_single_pixel(struct terminal *term, enum overlay_style style,
}
}
-static void
+void
render_overlay(struct terminal *term)
{
struct wayl_sub_surface *overlay = &term->window->overlay;
diff --git a/render.h b/render.h
index 1898351c..81d2a905 100644
--- a/render.h
+++ b/render.h
@@ -31,6 +31,8 @@ bool render_xcursor_set(
struct seat *seat, struct terminal *term, enum cursor_shape shape);
bool render_xcursor_is_valid(const struct seat *seat, const char *cursor);
+void render_overlay(struct terminal *term);
+
struct render_worker_context {
int my_id;
struct terminal *term;