aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-06-06 00:30:34 +0000
committerTiago Cunha <tcunha@gmx.com>2010-06-06 00:30:34 +0000
commit650320718508881ab2f518ae289e1dfd8fcc0c8b (patch)
treed806554a296e7eff113968f86206abd35f83bf9b /tmux.h
parent3bba40160931bdad2ad8cd5168a42239477cbe99 (diff)
downloadrtmux-650320718508881ab2f518ae289e1dfd8fcc0c8b.tar.gz
rtmux-650320718508881ab2f518ae289e1dfd8fcc0c8b.tar.bz2
rtmux-650320718508881ab2f518ae289e1dfd8fcc0c8b.zip
Sync OpenBSD patchset 716:
Fix problems with window sizing seen by Raghavendra D Prabhu when starting tmux from .xinitrc. One of the very few things the server relies on the client for now is to pass through a message on SIGWINCH, but there is a condition where potentially a SIGWINCH may be lost during the transition from unattached (main.c) to attached (client.c). So trigger a size change immediately after the client installs its SIGWINCH handler. Also, when the terminal is resized, reset the scroll region and cursor position. Previously, we were clearing our saved idea of these, but in fact some terminals do not reset them on resize, so this caused problems during redraw. While here make a resize to the same size not cause a redraw and rename the tmux.out output log file to include the tmux PID.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index c0d3298c..7f11a5d7 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.560 2010-06-06 00:23:44 tcunha Exp $ */
+/* $Id: tmux.h,v 1.561 2010-06-06 00:30:34 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1354,7 +1354,7 @@ void tty_puts(struct tty *, const char *);
void tty_putc(struct tty *, u_char);
void tty_pututf8(struct tty *, const struct grid_utf8 *);
void tty_init(struct tty *, int, char *);
-void tty_resize(struct tty *);
+int tty_resize(struct tty *);
void tty_start_tty(struct tty *);
void tty_stop_tty(struct tty *);
void tty_set_title(struct tty *, const char *);