mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Implement title_format
This implements the title_format command, with a new placeholder %shell
which gets substituted with the view type (xwayland, xdg_shell_v6 or
wl_shell).
Example config:
for_window [title=".*"] title_format %title (class=%class instance=%instance shell=%shell)
This commit is contained in:
parent
8dae168b77
commit
228c478e8d
10 changed files with 201 additions and 42 deletions
|
|
@ -223,7 +223,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
|||
view_update_size(view, xwayland_view->pending_width,
|
||||
xwayland_view->pending_height);
|
||||
view_damage(view, false);
|
||||
container_update_title(view->swayc, view->wlr_xwayland_surface->title);
|
||||
view_update_title(view, false);
|
||||
}
|
||||
|
||||
static void handle_unmap(struct wl_listener *listener, void *data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue