aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2021-08-13 06:52:51 +0000
committernicm <nicm>2021-08-13 06:52:51 +0000
commit2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c (patch)
treedc1ce41c165065e588de274dd754113bd0cb8a3f /tmux.h
parenta2b85069171413aa30c812d44bf8ee4d32a2f834 (diff)
downloadrtmux-2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c.tar.gz
rtmux-2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c.tar.bz2
rtmux-2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c.zip
Change focus to be driven by events rather than walking all panes at end
of event loop, this way the ordering of in and out can be enforced. GitHub issue 2808.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 3ac272f8..55df8005 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1004,7 +1004,7 @@ struct window_pane {
#define PANE_FOCUSED 0x4
/* 0x8 unused */
/* 0x10 unused */
-#define PANE_FOCUSPUSH 0x20
+/* 0x20 unused */
#define PANE_INPUTOFF 0x40
#define PANE_CHANGED 0x80
#define PANE_EXITED 0x100
@@ -2506,6 +2506,7 @@ int server_client_handle_key(struct client *, struct key_event *);
struct client *server_client_create(int);
int server_client_open(struct client *, char **);
void server_client_unref(struct client *);
+void server_client_set_session(struct client *, struct session *);
void server_client_lost(struct client *);
void server_client_suspend(struct client *);
void server_client_detach(struct client *, enum msgtype);
@@ -2826,6 +2827,8 @@ struct window_pane *window_find_string(struct window *, const char *);
int window_has_pane(struct window *, struct window_pane *);
int window_set_active_pane(struct window *, struct window_pane *,
int);
+void window_update_focus(struct window *);
+void window_pane_update_focus(struct window_pane *);
void window_redraw_active_switch(struct window *,
struct window_pane *);
struct window_pane *window_add_pane(struct window *, struct window_pane *,