Set Cage's window title to toplevel's title

When using the Wayland or X11 backend, Cage is drawn inside a window.
This commit sets this window's title to that of the currently focused
toplevel window inside Cage.

Fixes #29.
This commit is contained in:
Jente Hidskes 2019-01-24 14:14:15 +01:00
parent 443d955dfd
commit c00ac5c462
7 changed files with 53 additions and 1 deletions

3
seat.c
View file

@ -724,7 +724,8 @@ seat_set_focus(struct cg_seat *seat, struct cg_view *view)
wl_list_insert(&server->views, &view->link);
}
view_activate(view, true);
view_activate(view, true);
set_window_title(server, view);
struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(wlr_seat);
if (keyboard) {