aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-26 15:05:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-06-29 13:38:23 +0000
commit5a60bbc119397c2993fc1895bae75c2c1e69fe1d (patch)
tree6b8e3f891cad4341d6fe244134bb5c4afbcea825 /wayland.h
parentwayland: refactor: wayl_surface_scale(): pass wayl_surface pointer (diff)
wayland: refactor: add a buffer argument to wayl_*_scale() functions
This will be needed later, when using fractional scaling + viewporter to scale.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/wayland.h b/wayland.h
index 0506f82b..9736ea4d 100644
--- a/wayland.h
+++ b/wayland.h
@@ -32,6 +32,7 @@
/* Forward declarations */
struct terminal;
+struct buffer;
/* Mime-types we support when dealing with data offers (e.g. copy-paste, or DnD) */
enum data_offer_mime_type {
@@ -455,12 +456,16 @@ void wayl_roundtrip(struct wayland *wayl);
bool wayl_fractional_scaling(const struct wayland *wayl);
void wayl_surface_scale(
- const struct wayland *wayl, const struct wayl_surface *surf, float scale);
+ const struct wayland *wayl, const struct wayl_surface *surf,
+ const struct buffer *buf, float scale);
+void wayl_surface_scale_explicit_width_height(
+ const struct wayland *wayl, const struct wayl_surface *surf,
+ int width, int height, float scale);
struct wl_window *wayl_win_init(struct terminal *term, const char *token);
void wayl_win_destroy(struct wl_window *win);
-void wayl_win_scale(struct wl_window *win);
+void wayl_win_scale(struct wl_window *win, const struct buffer *buf);
void wayl_win_alpha_changed(struct wl_window *win);
bool wayl_win_set_urgent(struct wl_window *win);