aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-03 12:37:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-03 12:37:03 +0000
commit9a0238bb524668c3ea24465943cd231167ae1428 (patch)
treef8e31ab7f7b4bc23b39a338070bfa1f5478e3802 /wayland.h
parentrender: render_resize(): don't do anything if width or height is 0 (diff)
wayland: window now keeps pointer to owning terminal, not wayland
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wayland.h b/wayland.h
index dfdcfffd..b47bf0c3 100644
--- a/wayland.h
+++ b/wayland.h
@@ -84,7 +84,7 @@ struct wl_primary {
struct wayland;
struct wl_window {
- struct wayland *wayl;
+ struct terminal *term;
struct wl_surface *surface;
struct xdg_surface *xdg_surface;
struct xdg_toplevel *xdg_toplevel;
@@ -181,5 +181,5 @@ struct terminal *wayl_terminal_from_xdg_toplevel(
/* TODO: pass something other than 'term'? Need scale... */
bool wayl_cursor_set(struct wayland *wayl, const struct terminal *term);
-struct wl_window *wayl_win_init(struct wayland *wayl);
+struct wl_window *wayl_win_init(struct terminal *term);
void wayl_win_destroy(struct wl_window *win);