diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-11-28 12:18:41 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-11-28 12:18:41 +0000 |
commit | 5f5f029e3b3a782dc616778739b2801b00b17c0e (patch) | |
tree | fad35dccc37c54e45d0ecc497d3b915dd7b835aa /format.c | |
parent | c13838436e6883d191374f1628e675bfbb8c8aeb (diff) | |
parent | fa409194d3dfe0095bf6572a253772f2825f5dec (diff) | |
download | rtmux-5f5f029e3b3a782dc616778739b2801b00b17c0e.tar.gz rtmux-5f5f029e3b3a782dc616778739b2801b00b17c0e.tar.bz2 rtmux-5f5f029e3b3a782dc616778739b2801b00b17c0e.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2174,6 +2174,8 @@ format_defaults_client(struct format_tree *ft, struct client *c) format_add(ft, "client_pid", "%ld", (long) c->pid); format_add(ft, "client_height", "%u", tty->sy); format_add(ft, "client_width", "%u", tty->sx); + format_add(ft, "client_cell_width", "%u", tty->xpixel); + format_add(ft, "client_cell_height", "%u", tty->ypixel); format_add(ft, "client_tty", "%s", c->ttyname); format_add(ft, "client_control_mode", "%d", !!(c->flags & CLIENT_CONTROL)); @@ -2225,6 +2227,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); |