mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Make a best effort to set xpixel and ypixel for each pane and add
formats for them.
This commit is contained in:
2
format.c
2
format.c
@ -2211,6 +2211,8 @@ format_defaults_window(struct format_tree *ft, struct window *w)
|
||||
format_add(ft, "window_name", "%s", w->name);
|
||||
format_add(ft, "window_width", "%u", w->sx);
|
||||
format_add(ft, "window_height", "%u", w->sy);
|
||||
format_add(ft, "window_cell_width", "%u", w->xpixel);
|
||||
format_add(ft, "window_cell_height", "%u", w->ypixel);
|
||||
format_add_cb(ft, "window_layout", format_cb_window_layout);
|
||||
format_add_cb(ft, "window_visible_layout",
|
||||
format_cb_window_visible_layout);
|
||||
|
Reference in New Issue
Block a user