mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-22 05:34:01 -04:00
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:
parent
443d955dfd
commit
c00ac5c462
7 changed files with 53 additions and 1 deletions
3
seat.c
3
seat.c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue