diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 12:37:03 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-03 12:37:03 +0000 |
| commit | 9a0238bb524668c3ea24465943cd231167ae1428 (patch) | |
| tree | f8e31ab7f7b4bc23b39a338070bfa1f5478e3802 /wayland.h | |
| parent | render: 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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
