diff options
author | nicm <nicm> | 2021-08-13 06:52:51 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-13 06:52:51 +0000 |
commit | 2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c (patch) | |
tree | dc1ce41c165065e588de274dd754113bd0cb8a3f /tmux.h | |
parent | a2b85069171413aa30c812d44bf8ee4d32a2f834 (diff) | |
download | rtmux-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 *, |