wayland: add back-pointer to terminal

This can, in the future, be extended to e.g. a list, to support
multiple windows.
This commit is contained in:
Daniel Eklöf 2019-10-27 17:13:29 +01:00
parent c9455d5f21
commit eda04d0560
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 0 deletions

1
main.c
View file

@ -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?");