History log of /openbsd/usr.bin/tmux/resize.c (Results 1 – 25 of 51)
Revision Date Author Comments
# 0ad0daf4 21-Mar-2024 nicm <nicm@openbsd.org>

Do not notify window-layout-changed if the window is about to be
destroyed (since it may have been freed by the time the notify happens),
from Romain Francoise in GitHub issue 3860.


# ba37bc3c 17-Feb-2022 nicm <nicm@openbsd.org>

Add a window-resized hook which is fired when the window is actually
resized which may be later than the client resize, GitHub issue 2995.


# 55f2f580 06-Jan-2022 nicm <nicm@openbsd.org>

Ignore windows without a size set (may be used for pane only), from
Anindya Mukherjee.


# 8c20af2c 06-Dec-2021 nicm <nicm@openbsd.org>

Do not dereference NULL window when resizing client, GitHub issue 2982.


# 34ce0afc 27-Aug-2021 nicm <nicm@openbsd.org>

Allow control mode clients to set a hard limit on the window width and
height, GitHub issue 2594.


# 8ef4e054 25-Aug-2021 nicm <nicm@openbsd.org>

Improve some logging.


# a8571561 25-Aug-2021 nicm <nicm@openbsd.org>

Ignore client creating session when working out size if it is a control
client.


# cad9aae3 10-Jun-2021 nicm <nicm@openbsd.org>

Do not count client (and crash) if no window.


# 2077c06b 10-Jun-2021 nicm <nicm@openbsd.org>

Include current client in size calculation for new sessions, GitHub
issue 2662.


# a76f4211 05-Oct-2020 nicm <nicm@openbsd.org>

Tidy the resize code, merge some common bits and add some comments. From
"Mike" in GitHub issue 2392.


# 3e796c5a 05-Jun-2020 nicm <nicm@openbsd.org>

Add support for pausing a pane when the output buffered for a control
mode client gets too far behind. The pause-after flag with a time is set
on the pane with refresh-client -f and a paused pane may

Add support for pausing a pane when the output buffered for a control
mode client gets too far behind. The pause-after flag with a time is set
on the pane with refresh-client -f and a paused pane may be resumed with
refresh-client -A. GitHub issue 2217.

show more ...


# 061703b1 16-May-2020 nicm <nicm@openbsd.org>

Move lazy resize from the pane to the window, there is no point in
resizing the window unless it is the current window, and if we do and
don't resize the pane until later there are problems if the si

Move lazy resize from the pane to the window, there is no point in
resizing the window unless it is the current window, and if we do and
don't resize the pane until later there are problems if the size changes
from A to B then back to A.

show more ...


# cfef6bbb 16-May-2020 nicm <nicm@openbsd.org>

Change the existing client flags for control mode to apply for any
client, use the same mechanism for the read-only flag and add an
ignore-size flag.

refresh-client -F has become -f (-F stays for ba

Change the existing client flags for control mode to apply for any
client, use the same mechanism for the read-only flag and add an
ignore-size flag.

refresh-client -F has become -f (-F stays for backwards compatibility)
and attach-session and switch-client now have -f flags also. A new
format "client_flags" lists the flags and is shown by list-clients by
default.

This separates the read-only flag from "ignore size" behaviour (new
ignore-size) flag - both behaviours are useful in different
circumstances.

attach -r and switchc -r remain and set or toggle both flags together.

show more ...


# ed53a239 28-Jan-2020 nicm <nicm@openbsd.org>

If ALL clients are readonly, allow them to affect the size, suggested by Thomas Sattler.


# b5f8268c 28-Jan-2020 nicm <nicm@openbsd.org>

Add a define for flags meaning a client is not attached, and fix
unattached counter, reported by Thomas Sattler.


# 1e388329 29-Nov-2019 nicm <nicm@openbsd.org>

If a window appears in only one attached session, there is no point in
worrying about which is the latest client (there is only one).


# 4a8b0ea5 28-Nov-2019 nicm <nicm@openbsd.org>

Make a best effort to set xpixel and ypixel for each pane and add
formats for them.


# 1be6ca1c 23-Sep-2019 nicm <nicm@openbsd.org>

Use the correct size for new windows when window-size is latest,
reported by Vamsi Krishna Avula in GitHub issue 1917.


# f4f81a00 19-Sep-2019 nicm <nicm@openbsd.org>

Add a "latest" window-size option which tries to size windows based on
the most recently used client. From Tommie Gannert in GitHub issue 1869
based on earlier changes from me.


# f415a97b 11-May-2019 nicm <nicm@openbsd.org>

Do not reduce window height by status line height for control mode
clients, from George Nachman.


# d4ddf7e1 17-Apr-2019 nicm <nicm@openbsd.org>

Set the window size as well as the layout size when using the preset
layouts.


# b2140406 16-Mar-2019 nicm <nicm@openbsd.org>

Tidy and rename some bits of status line code.


# db993454 12-Mar-2019 nicm <nicm@openbsd.org>

Fix resizing of control clients, should be ignored until SIZECHANGED flag set.


# 83538210 04-Mar-2019 nicm <nicm@openbsd.org>

Fix sense of aggressive-resize flag.


# 7b470e93 18-Oct-2018 nicm <nicm@openbsd.org>

Support for windows larger than visible on the attached client. This has
been a limitation for a long time.

There are two new options, window-size and default-size, and a new
command, resize-window.

Support for windows larger than visible on the attached client. This has
been a limitation for a long time.

There are two new options, window-size and default-size, and a new
command, resize-window. The force-width and force-height options and the
session_width and session_height formats have been removed.

The new window-size option tells tmux how to work out the size of
windows: largest means it picks the size of the largest session,
smallest the smallest session (similar to the old behaviour) and manual
means that it does not automatically resize windows. The default is
currently largest but this may change. aggressive-resize modifies the
choice of session for largest and smallest as it did before.

If a window is in a session attached to a client that is too small, only
part of the window is shown. tmux attempts to keep the cursor visible,
so the part of the window displayed is changed as the cursor moves (with
a small delay, to try and avoid excess redrawing when applications
redraw status lines or similar that are not currently visible). The
offset of the visible portion of the window is shown in status-right.

Drawing windows which are larger than the client is not as efficient as
those which fit, particularly when the cursor moves, so it is
recommended to avoid using this on slow machines or networks (set
window-size to smallest or manual).

The resize-window command can be used to resize a window manually. If it
is used, the window-size option is automatically set to manual for the
window (undo this with "setw -u window-size"). resize-window works in a
similar way to resize-pane (-U -D -L -R -x -y flags) but also has -a and
-A flags. -a sets the window to the size of the smallest client (what it
would be if window-size was smallest) and -A the largest.

For the same behaviour as force-width or force-height, use resize-window
-x or -y, and "setw -u window-size" to revert to automatic sizing..

If the global window-size option is set to manual, the default-size
option is used for new windows. If -x or -y is used with new-session,
that sets the default-size option for the new session.

The maximum size of a window is 10000x10000. But expect applications to
complain and much higher memory use if making a window excessively
big. The minimum size is the size required for the current layout
including borders.

The refresh-client command can be used to pan around a window, -U -D -L
-R moves up, down, left or right and -c returns to automatic cursor
tracking. The position is reset when the current window is changed.

show more ...


123