aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-27 16:13:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-27 16:13:29 +0000
commiteda04d0560f3009a3e9e16317e44a4bb5b9cf35a (patch)
tree9e8f3596bd3032b4a0dbf7fefc4a07edc6818b6e /main.c
parentkbd: move into wayland (diff)
wayland: add back-pointer to terminal
This can, in the future, be extended to e.g. a list, to support multiple windows.
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 90f9ef2a..c1043171 100644
--- a/main.c
+++ b/main.c
@@ -887,6 +887,7 @@ main(int argc, char *const *argv)
term.cell_height = (int)ceil(term.fextents.height);
LOG_INFO("cell width=%d, height=%d", term.cell_width, term.cell_height);
+ term.wl.term = &term;
term.wl.display = wl_display_connect(NULL);
if (term.wl.display == NULL) {
LOG_ERR("failed to connect to wayland; no compositor running?");