aboutsummaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-25 18:51:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-25 18:51:03 +0000
commit595b32ddf99d40fa5c51f7b3e0696a27cc6adb28 (patch)
tree7e7a2d303312bcc335c2404dec6d406a5d2e5776 /render.h
parentwayland: decoration-configure: call render_resize() to add/remove CSDs (diff)
render: render_resize_*() returns a boolean indicating whether size changed.
Diffstat (limited to 'render.h')
-rw-r--r--render.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/render.h b/render.h
index 9c96aa24..8602d367 100644
--- a/render.h
+++ b/render.h
@@ -1,4 +1,5 @@
#pragma once
+#include <stdbool.h>
#include "terminal.h"
#include "fdm.h"
@@ -8,8 +9,8 @@ struct renderer;
struct renderer *render_init(struct fdm *fdm, struct wayland *wayl);
void render_destroy(struct renderer *renderer);
-void render_resize(struct terminal *term, int width, int height);
-void render_resize_force(struct terminal *term, int width, int height);
+bool render_resize(struct terminal *term, int width, int height);
+bool render_resize_force(struct terminal *term, int width, int height);
void render_set_title(struct terminal *term, const char *title);
void render_refresh(struct terminal *term);