Move set_window_title to output

This commit is contained in:
Jente Hidskes 2019-02-16 00:54:04 +01:00
parent 2669c80803
commit 9d825d6dc7
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
5 changed files with 18 additions and 25 deletions

4
seat.c
View file

@ -745,7 +745,9 @@ seat_set_focus(struct cg_seat *seat, struct cg_view *view)
}
view_activate(view, true);
set_window_title(server, view);
char *title = view_get_title(view);
output_set_window_title(server->output, title);
free(title);
struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(wlr_seat);
if (keyboard) {